Pow

#1 Pow
7/18/2015

Summary

Serve your applications on your development machine with ease. Pow allows a dev domain to your local machine for spinning up linked applications
4
development domain rails 3:28 min

Summary

Install Pow

bashcurl get.pow.cx | sh
Powder is a great tool for making Pow easier to use.

bashgem install powder
Within your application root directory, you can now link or unlink your application.

bashpowder link
powder unlink

Pow

When developing in the real world, many times you will be maintaining multiple applications. Switching between applications can be a pain if you’re having to swap between them often. When starting your Ruby on Rails application, you will typically typerails s or rails start to begin the WEBrick server. This will by default bind to the localhost on port 3000. We can have our applications automatically spin up to an application-name.dev domain name so that we can quickly access our application via this domain name on our local machine. The service that will do this is called Pow. www.pow.cx To install Pow type the following into your terminal:
curl get.pow.cx | sh
Keep in mind that it is potentially dangerous to execute remote scripts on your machine as they could be malicious. You should take care and review the scripts if they are from an unknown source.

Powder gem

https://github.com/rodreegez/powder/ There is a great gem, called powder, that allows you to manage and easily create symlinks to your applications.
gem install powder
From here, navigate into your application’s folder and simply type
powder link
Our application is now available at http://testapp.dev

Prax

Pow is a service just for OSX, there an alternative for Linux. http://ysbaddaden.github.io/prax/

Summary

Between Pow and Prax, there are great options for quickly switching between your applications that you’re developing and maintaining. Both Pow and Prax offers the use of subdomains which can be useful for testing out multi-tenancy applications which rely on subdomains.