Deploying Ruby on Rails 2.2 to Webfaction
WebFaction is my Rails host of choice - the prices are good, the service is great, I love the Mongrel hosting, I have experienced no downtime, the support is excellent, generally no complaints. This is my procedure for deploying a Rails application to Webfaction without Capistrano.
- Allow create default rails app during account setup
- Upload your application on top of default Rails app
- Install Rake:
gem install —remote rake
- Add your local gem path to bash profile:
PATH=$PATH:$HOME/bin:/home/YOUR USERNAME GOES HERE/.gem/ruby/1.8/bin
- Install the gems specified in environment.rb (eg config.gem ‘calendardateselect’) and located in your vendors/gems folder:
rake gems:install
- Having created a database and added it’s info to your database.yml file, then load your database schema and or import through phpmyadmin if you have production data on local server (don’t forget you need to specify the production environment when running rake tasks, script/console etc…):
rake environment RAILS_ENV=production db:schema:load
or migrate it:rake environment RAILS_ENV=production db:migrate
Restart the application in SSH:
ps -u “your_username” kill “id of your app”
I am available for Ruby on Rails consulting work – get in touch to learn more.