File tree Expand file tree Collapse file tree 5 files changed +27
-3
lines changed
Expand file tree Collapse file tree 5 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 1+ Installing tools
2+ ----------------
3+ 1 . Ansible
4+ 2 . Capistrano
5+
6+ Installing server tools
7+ -----------------------
8+ - Modify the server IP where tagbase-server will be deployed.
9+ - Open the ` devops/inventory ` file and modify the IPs specified under ` prod_server ` and ` dev_servers ` tags.
10+ - Run the following ansible command
11+ ```
12+ ansible-playbook -i ./inventory tagserver_playbook.yaml
13+ ```
14+
15+ Deploying tagbase-server
16+ ------------------------
17+ - Run the following capistrano to deploy into the staging server
18+ ```
19+ cap staging deploy
20+ ```
21+
Original file line number Diff line number Diff line change 5555 task :rebuild_deps do
5656 on roles ( :app ) do
5757 # Your restart mechanism here, for example:
58- execute '(cd /home/ubuntu/tagbase-server/current; sudo docker-compose build)'
58+ execute '(cd /home/ubuntu/tagbase-server/current; sudo docker-compose build --build-arg POSTGRES_PASSWORD="${POSTGRES_PASSWORD}" --build-arg POSTGRES_PORT="${POSTGRES_PORT}" --build-arg NGINX_USER="${NGINX_USER}" --build-arg NGINX_PASS="${NGINX_PASS}")'
59+
5960 #execute (cd /home/ubuntu/tagbase-server; docker-compose down; docker-compose up -d)
6061 end
6162 end
Original file line number Diff line number Diff line change 11set :branch , "149_configuration_tool"
2- set :server_ip , "3.145.103.174 "
2+ set :server_ip , "18.116.62.197 "
33
44# server-based syntax
55# ======================
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ tagbase_server_devserver docker_service_name=tagbase_server_devserver
55#one.example.com
66
77[dev_servers]
8- 3.145.103.174
8+ 18.116.62.197
99
1010#one.example.com
1111
Original file line number Diff line number Diff line change 7272 POSTGRES_PORT=5432
7373 SLACK_BOT_CHANNEL=tagbase-server
7474 SLACK_BOT_TOKEN=XYZXYZ
75+ NGINX_USER=nginx_user
76+ NGINX_PASS=nginx_pass
7577 dest : /home/ubuntu/tagbase-server/.env
You can’t perform that action at this time.
0 commit comments