Skip to content

Commit

Permalink
Pulling from master & capistrano changes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-brooks committed Nov 1, 2016
1 parent 94be4d5 commit 7999da6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# server 'db.example.com', user: 'deploy', roles: %w{db}

server 'sportsello.com', user: 'deploy', roles: %w{app}
set :branch, 'production/config'
set :branch, 'master'


# role-based syntax
Expand Down
2 changes: 2 additions & 0 deletions lib/capistrano/tasks/setup.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ namespace :setup do
task :upload_yml do
on roles(:app) do
execute "mkdir -p #{shared_path}/config"
execute "touch #{shared_path}/config/database.yml"
upload! StringIO.new(File.read("config/database.yml")), "#{shared_path}/config/database.yml"
end
end

desc "Upload .env.production file."
task :upload_env do
on roles(:app) do
execute "touch #{shared_path}/.env"
upload! StringIO.new(File.read(".env.production")), "#{shared_path}/.env"
end
end
Expand Down

0 comments on commit 7999da6

Please sign in to comment.