How do I deploy to Rackspace Cloud Sites?
With Beanstalk's S/FTP deployment tools, it's very simple to deploy to any server with a simple click. With Rackspace Cloud Sites, the process of setting up a server makes it even easier. Here's a quick tour on how to get up and running with Beanstalk deployments and Rackspace Cloud Sites.
Creating a new site on Rackspace Cloud
If you don't have an account already, go ahead and create one at rackspacecloud.com. Once the account is setup, navigate to the Hosting > Cloud Sites link on the left side.
Setting up a new site is easy. Just provide the domain name and follow the steps. The full process is documented in their knowledge base.
Once the server is ready, you can proceed with setting up the deployment settings on Beanstalk.
Creating a new deployment server on Beanstalk
To create a new deployment server, go to the repository that you want to deploy and click on the Deployments tab. You should see a button to Create Environment & Server if you have not already. Follow the steps for creating an environment and then server. When you get to the Server Settings step, it should look something like this:
The fields you want to pay attention to are:
- Repository Path: The path to your repo on Beanstalk where files will be deployed from.
- Server: This is the IP address of the "ftp.domain.com" under the Domain tab in your Rackspace account.
- Remote path: The default is `/your.domain.com/web/content" for Rackspace Cloud Sites.
- Login/Password: This is the username/password for your Rackspace Cloud Sites account.
If everything is correct, you should be able to click continue and see a message that the server was setup successfully. From this point forward, you can manually or automatically deploy to your Rackspace Cloud Site.