Back To The Main Support Page

Deploying Your Application to Slingshot using Capistrano

How do I setup lighttpd with externally managed fastCGIs?

Note, this method is deprecated in favor of mongrel/mongrel_cluster and Apache mod_proxy_balancer.

Download our custom lighttpd_deploy.rb file and replace it with your current deploy.rb in your config directory.

wget http://www.slingshothosting.com/files/lighttpd_deploy.rb /path/to/application/config/deploy.rb
or
curl -O http://www.slingshothosting.com/files/lighttpd_deploy.rb /path/to/application/config/deploy.rb

Open up the file in your favorite editor. We like textmate:

mate /path/to/application/config/deploy.rb

Change the following lines to suit your needs:

set :application, "your_application_name"
set :svn_username, "your_username"

You can alter other settings, but be aware that we prefer convention over configuration, and as it stands, Slingshot Hosting servers are ready for your application.

Next, download our custom spin.sh script and place it in scripts as "/scripts/spin". You'll need to check this in to your current repository and make it executable before trying to deploy.

curl -O http://www.slingshothosting.com/files/spin /path/to/application/script/spin

Create a directory called deploy and we'll put your custom lighttpd.conf in there, and your database.yml for the Slingshot server there.