Pow Alternative on Ubuntu

I had a need to prepare a Ubuntu VM image, which can house the Envisio app for development. Setting up a Rails dev environment on Ubuntu is a no brainer. Being able to find an alternative solution to Pow.cx on Ubuntu is a different story.

After setting up a working Rails dev environment, which allows me to run rails s. I had to do a few things.

First thing is to be hack the host file so that I can use *.envisio.dev instead of localhost. I quickly installed the ghost gem and registered a few host entries

rvmsudo ghost add envisio.dev
rvmsudo ghost add admin.envisio.dev
rvmsudo ghost add client_one.envisio.dev

After this I can point my browser to client_one.envisio.dev:3000. Next up, we need to get rid of the port 3000 part.

sudo ufw enable
sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -d -j REDIRECT --to-port 3000
sudo apt-get update
sudo apt-get install iptables-persistent

That’s it. client_one.envisio.dev now works.

Published: 2014-08-20
blog comments powered by Disqus