https://github.com/hackoregon/orestar-sync
A service for syncing orestar records with the open elections db
https://github.com/hackoregon/orestar-sync
Last synced: about 1 year ago
JSON representation
A service for syncing orestar records with the open elections db
- Host: GitHub
- URL: https://github.com/hackoregon/orestar-sync
- Owner: hackoregon
- License: mit
- Created: 2019-08-20T03:31:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:20:54.000Z (over 3 years ago)
- Last Synced: 2025-02-02T04:22:34.399Z (over 1 year ago)
- Language: Python
- Size: 67.9 MB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 14
-
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`.