Intercity CLI
Command-line interface for configuring a VPS to run Ruby on Rails.
Installation
$ gem install intercity
Usage
Get a clean Ubuntu 14.04 LTS server and initialize it:
$ intercity server install IPADDRESS
Then install a database server. You can choose PostgreSQL or MySQL:
$ intercity postgresql install
or
$ intercity mysql install
Now, create an application on your server:
$ intercity application create myapp
Upload your SSH key to the server so you can deploy the app with Capistrano:
$ intercity sshkey add
You can edit environment variables for your app like this:
$ intercity application config intercity
Finally, set up Capistrano in your app and deploy with:
$ cd ~/myapp
$ cap production deploy
All commands
# Initialize a server:
$ intercity server install HOST/IP
# List all your servers:
$ intercity server list
# Switch the active server:
$ intercity switch HOST/IP
# Install PostgreSQL:
$ intercity postgresql install
# Install MySQL:
$ intercity mysql install
# List your MySQL databases:
$ intercity mysql list
# Add your SSH key for deployment:
$ intercity sshkey add
# Create an application on your server:
$ intercity application create APPNAME
# Update an application setting, for example the domain names:
$ intercity application update APPNAME --domain-name=mysite.com
# Edit environment variables for an application:
$ intercity application config APPNAME
# List all the applications on the server:
$ intercity application list