-
Notifications
You must be signed in to change notification settings - Fork 0
Home
mazur edited this page Sep 13, 2010
·
2 revisions
Pinprick is a small template library for helping with deployment of Sinatra on hostingrails.com (and maybe other shared hosts).
Here is the short guide on how it works. In the example I will be creating a application called ‘myapp’ located in my home directory.
git clone git://github.com/mazur/pinprick.git myapp
git clone git://github.com/sinatra/sinatra.git myapp/sinatra
chmod -R 755 myapp
After executing these three lines your sinatra app is ready and configured. All you need to do is create the proper symlink. Here I will just link my web root to the new app.
rm public_html
ln -s ~/myapp public_html
killall dispatch.fcgi
Now you should be able to visit http://www.yourdomain.com and see a quote from Pink Floyd’s Comfortably Numb.
Your sinatra app can be found and edited in ~/myapp/app.rb
Enjoy!