Using Puma rack server

Puma is a light-weight Rack server built for speed and parallelism. Cloud 66 uses the following signals to control Puma:

Stop the web server

sudo bluepill cloud66_web_server stop

Start the web server

sudo bluepill cloud66_web_server quit
sudo bluepill load /etc/bluepill/autoload/cloud66_web_server.pill

Restart the web server (hot-restart)

sudo bluepill cloud66_web_server restart

kill -USR2 <pid>

Deploy with Puma

You need to choose your web server at the time of initial build of the application. Changes to or from Passenger (the default app server) will not be applied after your application has initially been analyzed. You can however change freely between other supported servers by simply updating your Gems and Procfile.

To run a Puma Rack server, add a line to your Procfile labeled as custom_web. Here is an example:

custom_web: bundle exec puma -e $RACK_ENV -b unix:///tmp/web_server.sock --pidfile /tmp/web_server.pid -d

Take note that Puma is running in Daemon mode with the -d parameter.