Skip to content

Commit cb1bef3

Browse files
authored
Added deployment instructions
1 parent 05daf23 commit cb1bef3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

setup.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,24 @@ Once you have the data, and installed packages, you should be able to run the se
2424
Working with postgres could be difficult. There are instructions online, as well as some legacy instructions in setup_OUTDATED.txt that may help.
2525

2626

27+
**Deploy to Dev and Production**
28+
In order to do this, you must ssh into the webcdi "base" instance, and from there deploy to the development or production servers. Here is the host info for the base server:
2729

30+
Host web-cdi
31+
HostName 52.32.108.131
32+
User ubuntu
33+
IdentityFile ~/.ssh/web-cdi_011017.pem
34+
35+
NOTE: You will need to get the IdentifyFile from someone. (Alessandro and Henry have it - I do not know who else does).
36+
37+
You can now ssh into the webcdi base with `ssh -i ~/.ssh/web-cdi_011017.pem [email protected]`
38+
39+
Next, you will see two folders inside the home directory once you ssh: web-cdi and webcdi-backup. The first is the actual repo, so in order to update it you have to go in and pull the latest code, or change the branch. This is the repo that will be pushed to production or development. There is also a folder inside there called .ebextensions which contains important config files. One file in particular, `02_python.config`, has a list of python commands that are run on the actual production / dev server every time there is a deploy (e.g. django migration commands). You can add a python command here if you want to.
40+
41+
The second folder (webcdi-backup) contains the deploy script. In order to deploy to prod, you run:
42+
`bash eb_deploy.sh web-cdi-prod2`
43+
44+
and to deploy to dev you run:
45+
`bash eb_deploy.sh web-cdi-dev`
46+
47+
To access admin you will need to obtain an admin username and password from a current admin user.

0 commit comments

Comments
 (0)