Repository navigation
Deployment Tools & Techniques
earmuff-jam edited this page Jan 11, 2025
·
1 revision
- Docker.
- Golang/migrate lib.
- Yarn package manager. 4 Make
- Migrate Cli
- Psql Db
- Use
main.shto run development instances.- ./main.sh -e
- ./main.sh -f
- ./main.sh -m
- ./main.sh -g
- Run
-ecommand first to get all .env variables for build. - Run
-Dto load dev container and run migration scripts. This add extra data for developers to develop against. - If everything is succesful, you should be able to succesfully have a development instance of psql container within docker with required migration files.
- Continue setup from MakeFile.
- Use
main.shto run test instance.- This test instance will have no data. Assumption is that you view mashed app from the scratch.
- ./main.sh -e
- ./main.sh -T
- Run
-ecommand first to get all .env variables for build. - Run
-Tfor loading test instance. This will load all migration scripts and also run unit tests. - Run
-ufor cleanup purposes. Must be done manually.
- Production instance must be executed in sequence. Since there should be ability to alter data, we have to run migration scripts as well. Please be aware of this.
- Only required env variables are copied over.
- Since data cannot be modified here, no test data is inserted. A fresh container will have no users. Running flag
-uwillREMOVE ALL DATA.NEVER RUN THIS IN PRODUCTION ENV
- Use
mainDeploy.shto run production instance.- This is production instance. Please be careful. Data is not scrubbed here.
- ./mainDeploy.sh -e
- ./mainDeploy.sh -p
- ./mainDeploy.sh -m
- Run
-mto allow for the migration scripts to run.