nuacm/website — pull request #60 by nixpulvis (2013-10-07 16:50:47+00:00)
Title: Deployment

I've created a few rake tasks to assist with the server management. I'm assuming puppet will handle all of the nginx, postgres, and environment/users. This script will simply be for starting, stopping, and restarting the server.

This means that puppet needs to deal with `RAILS_ENV`, `MAILCHIMP_API_KEY` and `SECRET_KEY` in the ENV.

## Usage

To show the current status of the server run: `rake server:status`

To start the Puma server run: `rake server:start`

To stop the Puma server run: `rake server:stop`

To perform a cold restart of the server (stop then start) run: `rake server:restart:cold`

To perform a hot restart of the server (0 downtime) run: `rake server:restart:hot`

## Moving Forward

I'd like there to be a little more system checking added to this. It would be nice to get status of all the parts of the system here, like postgres and nginx. Also getting some info about usage and load could be nice.