Automated Rails deployment over ssh

The scope of this script:

Create a Python script that can do the following:
1. SSH into a remote environment
2. Create the directory to store the application code
3. Git clone a repo into an application directory
4. Start up the server from the cloned application
1. The script should be able to report on failures on any step
2. The script should start up a Rails server (command: “bundle exec rails s production”) in the background
3. Assume that the remote host already has the SSH keys necessary to pull from the repo
4. The script should report which step it is on during each step of the process

So, ended… for now…. with having the options for entering the commands for the automation process as either Bash or Python commands.

The script resides in this repo at /py_deployment/


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s