Strider-CD / strider

Open Source Continuous Integration & Deployment Server
http://strider-cd.github.io/
4.59k stars 432 forks source link

Sample deployment script #552

Open yourdeveloper opened 9 years ago

yourdeveloper commented 9 years ago

Hi guys, we got strider working and now when we commit to master the tests are executed. We run strider on our dev server and want to deploy automatically if tests run without issues by pulling repository and restarting our node server process does anyone have a sample deployment script (running on EC2)

yourdeveloper commented 9 years ago

Nobody that can help me out here?

jaredly commented 9 years ago

Sorry, I haven't deployed to EC2. Now, are you running strider on the same instance where you want to deploy your app?

On 9/4/14, Peter van de Put notifications@github.com wrote:

Nobody that can help me out here?


Reply to this email directly or view it on GitHub: https://github.com/Strider-CD/strider/issues/552#issuecomment-54477059

yourdeveloper commented 9 years ago

Yes Strider is running on same machine as our dev server therefore when test are OK i want to pull the repository and restart node process, it is an CentOS image

jaredly commented 9 years ago

Ok, that shouldn't be too bad. Use the custom scripts plugin, and in the "deploy" stage, you can put whatever script you want. For example, copying the current directory (which contains the just-tested code), to a certain destination. Then you could trigger a restart using supervisor, upstart, or whatever it is you're using.

On 9/4/14, Peter van de Put notifications@github.com wrote:

Yes Strider is running on same machine as our dev server therefore when test are OK i want to pull the repository and restart node process, it is an CentOS image


Reply to this email directly or view it on GitHub: https://github.com/Strider-CD/strider/issues/552#issuecomment-54486495

knownasilya commented 9 years ago

@yourdeveloper did that solve your problem?

fernandoneto commented 9 years ago

@yourdeveloper i think you should see this tool. you can use it as a process manager for node app, and you can deploy code using pm2-deploy module. Very easy to configure

bitwit commented 9 years ago

Also worth checking out pod, which wraps PM2, as suggested by @fernandoneto https://github.com/yyx990803/pod

Turns your deployment custom script into a simple git push like so: screen shot 2014-11-12 at 2 21 54 pm

In that example we are pushing to 2 different remote servers on deploy too

doublerebel commented 9 years ago

Could overcast and Shipit be useful here? Overcast for EC2 tooling and Shipit for deploys. Perhaps Shipit as a Strider plugin?

Right now we're using Flightplan internally, but it doesn't have a standard deploy pattern. I'm not aware of any comparable to Shipit's deploy tasks. On Strider I'm able to use custom scripts + ssh deploy plugin instead of Flightplan, but that requires all commands to be local first, before all remote commands.