-
-
Notifications
You must be signed in to change notification settings - Fork 16
2021 Developer Startup Guide (WIP)
- Download Repo
- Install Global Dependencies
- Add .env vars to .env at /
- Add .env vars to .env at /front/.env
- (update later - docker, node, etc)
- docker-compose build (currently takes about 15 min, but should be mainly avoidable in most situations save for deployments, but hopefully also optimizable)
- docker-compose up
- cd front
- yarn
- yarn start (should serve front-end app at localhost://3000
(docker needs to be running to connect to clinwiki-db container)
Run
Docker cp <file> clinwiki-db:/
docker exec -it clinwiki-db psql -U clinwiki clinwiki -f <file>
IMPORT hasura_metadata file in local hasura console.
(need to still solidify which db is backup, which metadata will correctly match relationships and schema)
Either
1a. Uncomment out clinwiki container and then docker-compose build
or 1b. Switch to Master and add ‘gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f’’ to end of GEMFILE (we should probably create a reindexing branch and commit this, if we plan on using old mapping prior to next elastic version, it's a pain in the ass, but it's this or maybe throwing a few hours at fighting with new mapping created by elastic) 2. Docker exec -it rails c 3. Study.reindex 4.. Switch back to develop or your local branch and re run docker-compose build (this is the unfortunatel part of this process and then proceed normally)
(when you don't want to wait for docker-compose build)