Skip to content

Commit e2f7b1c

Browse files
committed
Added production deploy
1 parent bdab799 commit e2f7b1c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

config/deploy/production.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
################################################################################
2+
## Setup Environment
3+
################################################################################
4+
5+
# The Git branch this environment should be attached to.
6+
set :branch, 'main'
7+
8+
# The environment's name. To be used in commands and other references.
9+
set :stage, :production
10+
11+
# The URL of the website in this environment.
12+
set :stage_url, 'elearning.production.wordpress-linode.linode.unep-wcmc.org'
13+
14+
# The environment's server credentials
15+
server 'production.wordpress-linode.linode.unep-wcmc.org', user: 'wcmc', roles: %w(web app db)
16+
17+
# The deploy path to the website on this environment's server.
18+
set :deploy_to, "/home/#{fetch(:deploy_user)}/#{fetch(:application)}"
19+
20+
# The web user on this environment's server.
21+
set :web_user, 'www-data'

0 commit comments

Comments
 (0)