Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 26 23:52
    skjsdev07 opened #291
  • Sep 03 19:03
    yousufkalim opened #290
  • Aug 26 18:13
    JJ commented #288
  • Aug 15 07:35
    lukasoppermann closed #275
  • Aug 15 07:35
    lukasoppermann closed #276
  • Aug 15 07:35
    lukasoppermann closed #277
  • Jul 22 01:23
    MatthijsReyers commented #286
  • Jul 22 01:14
    MatthijsReyers commented #286
  • Jul 22 01:13
    MatthijsReyers commented #286
  • Jul 13 09:32
    VishalTaj commented #283
  • Jul 11 17:43
    agnipanda commented #283
  • Jul 06 10:23
    hemanth-byrisetti opened #289
  • May 29 02:28
    dcsan opened #288
  • May 29 02:26
    dcsan commented #287
  • May 07 22:07
    snird opened #287
  • May 01 18:40
    btxtiger opened #286
  • Sep 23 2021 09:50
    sukanyya39 commented #263
  • Aug 06 2021 03:24
    fsubal edited #285
  • Aug 06 2021 03:21
    fsubal edited #285
  • Aug 06 2021 03:21
    fsubal edited #285
Humberto Ribeiro
@inforserver2
hey guys, is possible to deploy angular 2 apps with shipit?
Fabian Becker
@halfdan
@inforserver2 I don't see why not
Zhomart Mukhamejanov
@Zhomart
Hello, how to build locally? shipitjs/shipit-deploy#125
ahmar siddiqui
@ahhmarr
hello guys
i've a question
I'm using shipit-deploy
want to run some commands once everything is done
how can I do that
??
Fabian Becker
@halfdan
you could create a task to listen to the deployed event and then kick off your scripts
using shipit.remote
ahmar siddiqui
@ahhmarr
shipit.on('deploy:finish',function(){
console.log('calle dit')
return shipit.remote('pwd');
})
will this work
??
Fabian Becker
@halfdan
looks good yeah
ahmar siddiqui
@ahhmarr
not running :(
can i share my shipit file.js
Fabian Becker
@halfdan
sure, but it's been a long time since I've used shipit so I may not be the best of help
ahmar siddiqui
@ahhmarr

module.exports = function (shipit) {
require('shipit-deploy')(shipit);

shipit.initConfig({
default: {
workspace: '/tmp/app',
deployTo: '/var/www/app',
repositoryUrl: 'git@repo',
ignores: ['.git', 'node_modules','bower_components'],
rsync: ['--del'],
keepReleases: 5,
key: '~/.ssh/id_rsa_new',
shallowClone: true,
branch : 'dev'
},
production: {
servers: 'user@ip.address'
}
});
shipit.on('deploy:init',function(){
console.log('calle dit')
return shipit.remote('pwd');
})
};

Fabian Becker
@halfdan
could you put it on gist.github.com or any other code paste website?
ahmar siddiqui
@ahhmarr
yea just a min
Fabian Becker
@halfdan
or surround it by triple ticks to preserve the spacing
ahmar siddiqui
@ahhmarr

```module.exports = function (shipit) {
require('shipit-deploy')(shipit);

shipit.initConfig({
default: {
workspace: '/tmp/app',
deployTo: '/var/www/app',
repositoryUrl: 'git@repo',
ignores: ['.git', 'node_modules','bower_components'],
rsync: ['--del'],
keepReleases: 5,
key: '~/.ssh/id_rsa_new',
shallowClone: true,
branch : 'dev'
},
production: {
servers: 'user@ip.address'
}
});
shipit.on('deploy:init',function(){
console.log('calle dit')
return shipit.remote('pwd');
})
};```

Fabian Becker
@halfdan
test
Fabian Becker
@halfdan
-.-
well.. indenting your code would be a good idea
ahmar siddiqui
@ahhmarr
m extremely sorry
will update it asap
Fabian Becker
@halfdan
nah got it
http://jsbeautifier.org/ to the rescue
the event is called deployed
deploy:init / deploy:finish are shipit tasks that emit events
ahmar siddiqui
@ahhmarr
just a min
man u are such a life saver
thnx a ton
Fabian Becker
@halfdan
no worries dude
glad I could help
ahmar siddiqui
@ahhmarr
just last question
how do you find the event is deployed
mean is there any event list i could find
Fabian Becker
@halfdan
ahmar siddiqui
@ahhmarr
u sir just got a follower
cheers
Fabian Becker
@halfdan
:)
Matt Walters
@mateodelnorte
Has anybody used shipit with Windows?
Seth Stone
@sethstone
I was trying to yesterday, but didn't get too far. :|
I couldn't figure out how to get the rsync environment to use my SSH agent
Weyert de Boer
@weyert
Good morning :)
Weyert de Boer
@weyert
How can I do a local build and then push the result (in a directory build) to the remote server?
Markus Köhler
@markuskoehler
hey all, where is the best place to find good shipit documentation? seems like i am unable to find detailed instructions on advanced scripts...