https://github.com/hackoregon/elections-2018-backend
https://github.com/hackoregon/elections-2018-backend
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hackoregon/elections-2018-backend
- Owner: hackoregon
- License: mit
- Created: 2018-05-06T18:41:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T21:18:39.000Z (about 4 years ago)
- Last Synced: 2025-06-07T18:03:09.626Z (about 1 year ago)
- Language: Python
- Size: 3.04 MB
- Stars: 1
- Watchers: 13
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README-Workflow.md
- License: LICENSE
Awesome Lists containing this project
README
# Linux Host Testing - GitHub Workflow
I've settled on this workflow for Linux host testing. It treats the `backend-examplar-2018` as a template, which simplified the `git` manipulations.
## Create a new repository
1. Log into GitHub
2. Press the `+` button at the upper left and select "Import repository".
3. Import from this repository with a new name.
## Configuring the run
1. Clone the repository you created above and `cd` into it.
2. Copy your database backup into `Backups`. If the backup contains database ownership, you'll need to set `DEVELOPMENT_DATABASE_OWNER` in `.env` to the database owner.
3. Copy `env.sample` to `.env` and edit `.env`:
* Change PROJECT_NAME
* Change DEVELOPMENT_POSTGRES_NAME
* Change DEVELOPMENT_DATABASE_OWNER
* Change STAGING_POSTGRES_NAME
* Change the passwords and secret keys
## Running the creation
1. Type `bin/create-api-project.sh`. This will build a database image with your backup restored, and an API image. The project scaffolding from the API image will be stored in the repository.
2. When the run completes, examine `db_container.log` to verify that the restore worked.
3. Check your remote - `git remote -v`. Make sure you'll be pushing to the new repository, not the template!
4. `git add .; git commit; git push`.