Commit b61b36268f6cd0d0fe414e3ce3a5b0ab22f1ba35
1 parent
b37b2e37
Exists in
master
and in
2 other branches
Add dotenv
Showing
4 changed files
with
10 additions
and
3 deletions
Show diff stats
Gemfile
Gemfile.lock
... | ... | @@ -131,6 +131,8 @@ GEM |
131 | 131 | warden (~> 1.2.3) |
132 | 132 | diff-lcs (1.2.5) |
133 | 133 | dotenv (0.7.0) |
134 | + dotenv-rails (0.7.0) | |
135 | + dotenv (= 0.7.0) | |
134 | 136 | em-synchrony (1.0.3) |
135 | 137 | eventmachine (>= 1.0.0.beta.1) |
136 | 138 | em-websocket (0.5.1) |
... | ... | @@ -429,6 +431,7 @@ DEPENDENCIES |
429 | 431 | delayed_job_active_record |
430 | 432 | delayed_job_web |
431 | 433 | devise |
434 | + dotenv-rails | |
432 | 435 | factory_girl_rails |
433 | 436 | faker |
434 | 437 | foreman | ... | ... |
config/deploy.rb
... | ... | @@ -28,7 +28,7 @@ set :use_sudo, false |
28 | 28 | # set :pty, true |
29 | 29 | |
30 | 30 | # Default value for :linked_files is [] |
31 | -set :linked_files, %w{config/database.yml} | |
31 | +set :linked_files, %w{config/database.yml .env} | |
32 | 32 | |
33 | 33 | # Default value for linked_dirs is [] |
34 | 34 | set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} |
... | ... | @@ -45,7 +45,7 @@ namespace :deploy do |
45 | 45 | task :restart do |
46 | 46 | on roles(:app), in: :sequence, wait: 5 do |
47 | 47 | # Your restart mechanism here, for example: |
48 | - # execute :touch, release_path.join('tmp/restart.txt') | |
48 | + execute :touch, release_path.join('tmp/restart.txt') | |
49 | 49 | end |
50 | 50 | end |
51 | 51 | |
... | ... | @@ -55,7 +55,7 @@ namespace :deploy do |
55 | 55 | on roles(:web), in: :groups, limit: 3, wait: 10 do |
56 | 56 | # Here we can do anything such as: |
57 | 57 | # within release_path do |
58 | - # execute :rake, 'cache:clear' | |
58 | + execute :rake, 'cache:clear' | |
59 | 59 | # end |
60 | 60 | end |
61 | 61 | end | ... | ... |