-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
# Production Files | ||
This folder is copied by `/.github/workflows/deploy.yml` | ||
and added to the branch `prod-config`, which can then be cloned by the production | ||
server to deploy changes to the infrastructure of Schedge. | ||
server to deploy changes to the infrastructure of Schedge. | ||
|
||
### Production layout | ||
- Runs on a AWS Lightsail instance w/ 1GB RAM and 1vCPU | ||
- Project at `/home/ubuntu/schedge` | ||
- Cloned using `git clone -b prod-config --single-branch https://github.com/A1Liu/schedge` | ||
- Folders/files that the environment uses: | ||
- `.env` file for environment variables | ||
- `.letsencrypt` folder for ACME (this is created for you) | ||
- `.build` folder for postgres DB (this is created for you) | ||
|
||
## Useful Commands | ||
All of these are running from the directory `/home/ubuntu/schedge` | ||
|
||
- Spin up the docker environment (also potentially update it if its already running) | ||
``` | ||
docker-compose -f docker-compose.yml up -d | ||
``` | ||
- Print logs for a service in the docker compose | ||
``` | ||
docker-compose -f docker-compose.yml logs <service-name> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters