diff --git a/config/deploy.rb b/config/deploy.rb index 496b3a2..970e3b4 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -44,9 +44,7 @@ #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 @@ -54,9 +52,7 @@ 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 diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 0675c75..1163e35 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -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" diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb index 569cb48..cb0990e 100644 --- a/config/deploy/staging.rb +++ b/config/deploy/staging.rb @@ -9,6 +9,7 @@ set :deploy_to, "/mnt/degust-staging/" set :branch, "vue" +set :rails_env, "staging" append :linked_files, "db/staging.sqlite3" diff --git a/config/deploy/training.rb b/config/deploy/training.rb index 5667bc8..7c0ee7e 100644 --- a/config/deploy/training.rb +++ b/config/deploy/training.rb @@ -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!