Posts Tagged ‘gusty gibbon’

Getting Rubyworks stack running on Ubuntu Gusty Gibbon 7.10

Tuesday, November 20th, 2007
No Gravatar

Rubyworks stack does not run entirely out of the box on Ubuntu Gusty Gibbon (7.10).

Here are a couple of things I did to get it working.

1. Following the readme for 7.04 on rubworks here: http://rubyworks.rubyforge.org/installation/ubuntu.html.

2. You get to

If all goes well, you now have a skeleton Rails application up and running at http://localhost:3001. There is also monitoring console running at http://localhost:2812. Congratulations!

and it probably won’t be running.

Solution: just run: sudo runsvdir-start

3. Then continue with the tutorial, make sure to change the port for the webserver from 3001 to 80. Tutorial is here: http://rubyworks.rubyforge.org/installation/ubuntu.html.

4. You need to configure your iptables to allow traffic into port 80 (and 2812 if you want to access monit from outside of localhost).
To do this you need to type this:

sudo iptables -A INPUT -p tcp --dport http -j ACCEPT
and
sudo iptables -A INPUT -p tcp --dport 2812 -j ACCEPT

Now try and connect to your machine from another!
N.B. opening 2812 for monit like this is a security risk, so follow the instructions on how to set up ssl etc if your server is on the internet

And that’s about it!


nogeek.org is Digg proof thanks to caching by WP Super Cache!