Skip to content

Commit

Permalink
Update deploy for "training" server
Browse files Browse the repository at this point in the history
Deploy to training server, but as a production environment
  • Loading branch information
drpowell committed May 7, 2019
1 parent c926ef0 commit c7b1f81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,15 @@
#invoke 'deploy:frontend_deps'
on roles(:all) do
within release_path do
with rails_env: fetch(:stage) do
execute :rake, "degust:build"
end
end
end
end

task :frontend_deps do
on roles(:all) do
within release_path do
with rails_env: fetch(:stage) do
execute :rake, "degust:deps"
end
end
end
end
Expand Down
1 change: 1 addition & 0 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# server "db.example.com", user: "deploy", roles: %w{db}

set :deploy_to, "/mnt/degust-rails/"
set :rails_env, "production"

append :linked_files, "db/production.sqlite3"

Expand Down
1 change: 1 addition & 0 deletions config/deploy/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

set :deploy_to, "/mnt/degust-staging/"
set :branch, "vue"
set :rails_env, "staging"

append :linked_files, "db/staging.sqlite3"

Expand Down
7 changes: 4 additions & 3 deletions config/deploy/training.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
# server "example.com", user: "deploy", roles: %w{app web}, other_property: :other_value
# server "db.example.com", user: "deploy", roles: %w{db}

set :deploy_to, "/mnt/degust-training"
append :linked_files, "db/training.sqlite3"
set :deploy_to, "/mnt/degust"
append :linked_files, "db/production.sqlite3"
set :rails_env, "production"

server "degust-training.erc.monash.edu",
user: "degust-training",
user: "degust",
roles: %w(app db web),
ssh_options: {
keys_only: true, # Important to stop Net::SSH trying all keys in the agent!
Expand Down

0 comments on commit c7b1f81

Please sign in to comment.