Yeah I have a Pi as well, great toy :) runs my VPN server (might warrant another article some day). I updated the guide some time back:
The RVM instructions changed to:
curl -L https://get.rvm.io | sudo bash -s stable
Although I suppose that both instructions retrieve the same RVM config, could you try this one?
I'm not sure, there wasn't that much documentation on this GC stuff when I wrote it...
I would expect a rails 404 if passenger is not working. Perhaps passenger is not loaded at all? Can you check:
1. Is the todo route in your routes.rb?
2. can you run `apache2ctl -t -D DUMP_MODULES`? It will list all loaded modules in apache so you can check if passenger is actually being loaded. If it's not loaded, can you check the passenger.conf and passenger.load in /etc/apache2/available-modules and then run `sudo a2enmod passenger` again? (Then restart apache)
3. can you run `rvmsudo passenger-status` to check on any passenger info?
That warning is actually a pretty good indication where I left too much out of the tutorial. I never deactivated the default vhost, so that one caches the request before passenger. Can you do the following:
1. Change the virtualhost config to:
(If you have a domain, you should set 'ServerName www.example.com` to listen for that domain btw)
2. disable the default vhost (just for testing without a domain specified, otherwise this one will catch it before it reaches passenger. Once you have a domain going you can enable the default for catching the ip again.)
sudo a2dissite default
3. the enable your rails vhost
sudo a2ensite myrailsapp
4. reload or restart apache
sudo service apache2 reload
5. Try visiting http://serverip (it should show default rails app) and http://serverip/todos
I hope this helps!
Thanks, I just noticed a typo in the vhost configuration where it says `ww` instead of `www`. Can you check if your vhost settings are correct?
Without which I would never have got this up and running so fast.
This source of this Rails application is available on
Feel free to check it out and take it for a spin.
I started WebL to learn Ruby on Rails.
By now, it has evolved into a basic weblog, which I use to jot down stuff I discover or think of in everyday life.