My Recipe For Sinatra/Thin/Rack/Webfaction
The solution I am using for deploying a Sinatra app that runs on Thin and Rack on Webfaction, without Capistrano or Git, just using Rsync and Rake.
-
## Create the application:
myapp config config.ru config.yml db migrate rake migration files myapp.sqlite3.db myapp.rb lib models public stylesheets images javascripts Rakefile tmp/ views layout.erb myview.erb
- In the Wefaction Control Panel, create a custom application listening on port, get the port number, needed for config files. Create a domain. Create a website that links a domain to the application. Do a custom Ruby install. Install any necessary gems (eg Thin, Rack, ActiveRecord, whatever).
- Set up the config files and a Rakefile: ### config.ru ### config.yml ### Rakefile
- To deploy the site, rake deploy.
I am available for Ruby on Rails consulting work – get in touch to learn more.