These are chat archives for shipitjs/shipit

10th
Jun 2015
Mathieu Lemaire
@getvega
Jun 10 2015 20:21
hi - is there a way to set the NODE_ENV on the target server ?
Mathieu Lemaire
@getvega
Jun 10 2015 22:19
This message was deleted
grunt.registerTask('start', function() {
    var done = this.async();
    var current = grunt.config('shipit.options.deployTo') + '/current';
    var env = grunt.shipit.environment;
    grunt.shipit.remote('cd ' + current + ' && NODE_ENV=' + env + ' npm start', done);
});
Mathieu Lemaire
@getvega
Jun 10 2015 22:29
Okay I got this working now... But any clue on how to detach the web server that is started by "npm start"?
Furthermore - how could we use tools such as forever with shipit?
http://www.therightcode.net/deploy-nodejs-application-using-shipit/ is quite a good tuto but it needs to dig a bit further ^^