Reputation: 14379
I have a nodejs non open source web application project that I want to deploy to a production server and/or a staging server. Is there a default way for this, or some tool that does it? I want to package all files needed and exclude the files not needed like the .git
folder, the tests and other files like Gruntfile
, package.json
and so on.
I could of course manually package the files in a tar.gz file and send them to the correct server. But I was hoping to find a more complete and configurable tool that can do it for me.
Upvotes: 0
Views: 145
Reputation: 14973
Might be not exactly what you're asking for, but i like git
for automated deployment.
You could have branches like staging
and production
, which are checked out on the remote server.
You can set up a git hook like post-receive
to update those remotely, every time you merge changes into those branches.
Here's a tutorial: http://wekeroad.com/2011/09/17/deploying-a-site-with-git-hooks
Upvotes: 1