
Pow - lightweight, fast, comfortable
How many Ruby applications, sites, systems do you run under Rails and other frameworks? How often do you have to climb into the terminal and run applications through 'rails s' and other console commands? This is a waste of time, difficulty in managing (in terms of organizing projects). It would be nice if all the projects were in one place and were launched with one click ...
I want to tell you about Pow . On the one hand, it is a simple Rack server for launching your projects, on the other hand it is a very convenient tool. The server was developed by 37signals . The only caveat: the server runs only under Mac OSX.
Everything is very simple:
Actually the whole installation. Now to add projects it is enough to
The server also has a configuration file
I can not ignore the wonderful program for Pow: Anvil for Mac . This convenient addition allows adding a new project to Pow in 2 steps.
I would even recommend installing Anvil for Mac first and then installing Pow from this program.
I also want to share additional Pow server server management tools.
In addition to the a_vasyutin Powify mentioned in the comment, there is also a Powder gem . This is a simpler management tool than Powify, but also knows how to install a Pow server, link projects, view logs, etc. For more information on commands, see here: https://github.com/Rodreegez/powder#usage .
There is also a web wrapper for Powder - Powser . It allows you to restart, redirect the project directly through the browser. After installing the gem from the project folder, make a link to the project and launch Power:
Now, for example, to restart the project, it is enough to enter in the address bar of the browser:
I want to tell you about Pow . On the one hand, it is a simple Rack server for launching your projects, on the other hand it is a very convenient tool. The server was developed by 37signals . The only caveat: the server runs only under Mac OSX.
How does Pow work?
Everything is very simple:
- In the terminal, enter the command:
curl get.pow.cx | sh
- After installation, go to the Pow folder:
. This folder is a link tocd ~/.pow
~/Library/Application Support/Pow/Hosts
. - Make a link to your project:
ln -s /path/to/myapp
- In the browser, type
myapp.dev
Actually the whole installation. Now to add projects it is enough to
~/.pow
make links to your projects in the folder . All projects are launched from http://[название проекта].dev
. The server also has a configuration file
~/.powconfig
, which is located in the home directory. For example, you can specify a timeout of 5 minutes to complete the running of the project: export POW_TIMEOUT=300
. You can read more about server configuration here .What are the benefits of Pow?
- No need to edit
/etc/hosts
to run a project through a domain name. - No maintenance required. Pow is a simple, standalone server that runs without root privileges.
- To install, you do not need to compile or additional gems.
- full support for rbenv and bundler.
- You can make several links to one project. Thus, subdomains are supported.
- Running projects with a different set of gems and Ruby version.
Is there a graphic snap?
I can not ignore the wonderful program for Pow: Anvil for Mac . This convenient addition allows adding a new project to Pow in 2 steps.
What can Anvil for Mac do?
- Install, Restart, Uninstall Pow.
- Starting, stopping the Pow server.
- Adding, updating, deleting links to projects.
I would even recommend installing Anvil for Mac first and then installing Pow from this program.
UPD:
I also want to share additional Pow server server management tools.
In addition to the a_vasyutin Powify mentioned in the comment, there is also a Powder gem . This is a simpler management tool than Powify, but also knows how to install a Pow server, link projects, view logs, etc. For more information on commands, see here: https://github.com/Rodreegez/powder#usage .
There is also a web wrapper for Powder - Powser . It allows you to restart, redirect the project directly through the browser. After installing the gem from the project folder, make a link to the project and launch Power:
powser start appname
Now, for example, to restart the project, it is enough to enter in the address bar of the browser:
powser.dev/restart
or powser.dev/restart?app=appname
, where appname is any linked project. You can read more about using the gem here: https://github.com/phil-monroe/powser#powder-for-your-browser .