Skip to content

Commit

Permalink
instructions for server setup
Browse files Browse the repository at this point in the history
  • Loading branch information
7hunderbird committed Oct 15, 2014
1 parent 3e17c59 commit 6159a74
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ require "eycap/recipes"

## Usage

### Configuration

Your initial deploy.rb will be provided for you when your servers are provisioned on Engine Yard Managed. In order to deploy your application, you can go to the `RAILS_ROOT` folder and run:

$ capify .
Expand All @@ -42,6 +44,37 @@ This generates the `Capfile` and the `config/deploy.rb` file for you. You'll re

For deploying Rails 3.1 or greater apps using the [asset pipeline](https://github.com/engineyard/eycap/wiki/Asset-Pipeline) read more on the linked page.

### Setup restart server

Mongrel is the default server, to override this default you'll need to define the following in your `deploy.rb` file:

```ruby
namespace :deploy do

task :restart, :roles => :app do
# mongrel.restart
end


task :spinner, :roles => :app do
# mongrel.start
end


task :start, :roles => :app do
# mongrel.start
end


task :stop, :roles => :app do
# mongrel.stop
end

end
```

Replace the commented out with your server (passenger, unicorn, thin, puma, etc.) and then it will override the default of mongrel.

### Deploying to Environment

To ensure your environments are ready to deploy, check on staging.
Expand Down

0 comments on commit 6159a74

Please sign in to comment.