Last Updated: September 09, 2019
· dpaluy

"Pow like" development in Ubuntu with Rails

If your other team members use MacOS Pow for development.
But you develop with Ubuntu.

Suppose, the development domain name is:

To work with Pow like environment in Ubuntu you need the following:

Add the following to /etc/hosts:

and any other subdomain you will need

In your Rails config (example: config/environments/development.rb ) define:


and add it to ASSETS_DOMAIN and other

config.action_controller.asset_host = "//assets.#{PRIMARY_DOMAIN}"

Start your rails s

Verify your app works correctly from:

2 Responses
Add your response

where to put "PRIMARY_DOMAIN = """?
I mean the file name. Thanks

over 1 year ago ·

You should add PRIMARY_DOMAIN const to config/environments/development.rb .

over 1 year ago ·