Skip to content
Ilya Radchenko edited this page May 11, 2015 · 7 revisions

On the same server as Strider

Ubuntu/Upstart/Nginx

Use the strider-custom plugin. From there open the custom options and in the Deploy section put the following:

sudo rm -rf /var/www/myapp.com
sudo cp -r $PWD /var/www/myapp.com
cd /var/www/myapp.com
# do optional build here
sudo stop myapp.com
sudo start myapp.com

The above assumes that you have an nginx config in sites-enabled called myapp.com and you also have an upstart config called myapp.com. Your application is also copied to /var/www/myapp.com.

Note: Make sure that the Custom plugin is after your main application plugin in the plugins page, on the enabled side. Also remove the comment in the script, or you might see weird behavior.

Clone this wiki locally