- Create folder
~/yourapp
- Create folder
~/yourapp/tmp
- Create file
~/yourapp/config.ru
with the following content:
app = proc do |env|
[200, { "Content-Type" => "text/html" }, ["hello, <b>world</b>"]]
end
run app
In the ~/public_html
folder create/modify .htaccess
with the following content:
PassengerAppRoot /home/.../yourapp
where /home/.../yourapp
is a full path to ~/yourapp
Sometimes after updating config.ru
Passenger has to be restarted (otherwise the application does not get updated). To do this simply go to ~/yourapp
and
touch tmp/restart.txt