Skip to content

Commit

Permalink
set capistrano stage via ENV variable #174
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 31, 2014
1 parent 989a3ca commit 56334fa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions .env.example
Expand Up @@ -3,6 +3,7 @@
APPLICATION=lagotto

RAILS_ENV=development
STAGE=development

# database settings
DB_NAME=lagotto
Expand Down
1 change: 1 addition & 0 deletions config/deploy.rb
Expand Up @@ -27,6 +27,7 @@

set :application, ENV["APPLICATION"]
set :repo_url, 'https://github.com/articlemetrics/lagotto.git'
set :stage, ENV["STAGE"]

# Default branch is :master
set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"] || "master"
Expand Down
8 changes: 0 additions & 8 deletions config/deploy/production.rb

This file was deleted.

8 changes: 0 additions & 8 deletions config/deploy/staging.rb

This file was deleted.

0 comments on commit 56334fa

Please sign in to comment.