Skip to content

Commit

Permalink
add production deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Cain committed Nov 21, 2023
1 parent 5d8e1b7 commit dfb3164
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Defines a single server with a list of roles and multiple properties.
# You can define all roles on a single server, or split them:

# server "example.com", user: "deploy", roles: %w{app db web}, my_property: :my_value
server "52.4.204.0", user: "ubuntu", roles: %w{app db web}
# server "example.com", user: "deploy", roles: %w{app web}, other_property: :other_value
# server "db.example.com", user: "deploy", roles: %w{db}

Expand Down Expand Up @@ -41,12 +41,17 @@
#
# Global options
# --------------
# set :ssh_options, {
# keys: %w(/home/user_name/.ssh/id_rsa),
# forward_agent: false,
# auth_methods: %w(password)
# }
#
set :ssh_options, {
auth_methods: %w(publickey),
forward_agent: true,
keys: %W(~/.ssh/key-1-jun24-2015.pem),
user: 'ubuntu'
}

set :branch, "main"

set :rails_env, 'production'

# The server-based syntax can be used to override options:
# ------------------------------------
# server "example.com",
Expand Down

0 comments on commit dfb3164

Please sign in to comment.