To launch a Ruby on Rails application using Litespeed, please follow the steps below:

  • create a folder in the root of your account (eg mkdir ~/rubyapps)
  • create a subfolder in which you will install your application (eg cd/rubyapps; mkdir app1)
  • configure the application to connect to the MySQL server (usually in config/database.yml)
  • configure other application parameters if necessary
  • generate a "session store" (eg cd app1; rake generate_session_store)
  • configure the database via shell: RAILS_ENV = production rake db: migrate
  • create the following file in the account root: nano ~/.ls_rails_config
  • edit the created file:
#RailsApp <name> <App Path> <Rails Env> <Children Processes> <RunOnStart>
RailsApp app1 "/rubyapps/app1" "production" 4 1
#RailsAppMap <name> <domain> <URI>
RailsAppMap app1 "yourdomain.com" "/"
RailsAppMap app1 "www.yourdomain.com" "/"

Don't forget to replace with the real domain name.

Was this answer helpful? 0 Users Found This Useful (0 Votes)