mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
chore: update survey uploader script to work on ecp. Update readme to be more ecp specific
This commit is contained in:
parent
69a01c4f7b
commit
d76982e892
2 changed files with 7 additions and 7 deletions
12
README.md
12
README.md
|
|
@ -159,25 +159,25 @@ Or if you want to load data from a specific directory
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# locally
|
# locally
|
||||||
SFTP_PATH=/data/survey_responses/clean/2022_23 bundle exec rake data:load_survey_responses_from_path
|
SFTP_PATH=/ecp/data/survey_responses/clean/2024_25 bundle exec rake data:load_survey_responses_from_path
|
||||||
# You can also swap the order of the commands and environment variables
|
# You can also swap the order of the commands and environment variables
|
||||||
bundle exec rake data:load_survey_responses_from_path SFTP_PATH=/data/survey_responses/clean/2022_23
|
bundle exec rake data:load_survey_responses_from_path SFTP_PATH=/ecp/data/survey_responses/clean/2024_25
|
||||||
|
|
||||||
# on heroku staging environment
|
# on heroku staging environment
|
||||||
heroku run:detached -a mciea-beta SFTP_PATH=/data/survey_responses/clean/2022_23 bundle exec rake data:load_survey_responses_from_path
|
heroku run:detached -a ecp-sqm-dashboard SFTP_PATH=/ecp/data/survey_responses/clean/2024_25 bundle exec rake data:load_survey_responses_from_path
|
||||||
|
|
||||||
# on heroku production environment
|
# on heroku production environment
|
||||||
heroku run:detached -a mciea-dashboard SFTP_PATH=/data/survey_responses/clean/2022_23 bundle exec rake data:load_survey_responses_from_path
|
heroku run:detached -a ecp-sqm-dashboard SFTP_PATH=/ecp/data/survey_responses/clean/2024_25 bundle exec rake data:load_survey_responses_from_path
|
||||||
```
|
```
|
||||||
|
|
||||||
For convenience, you can use the following script for loading data on Heroku:
|
For convenience, you can use the following script for loading data on Heroku:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# on heroku staging environment
|
# on heroku staging environment
|
||||||
./scripts/load_survey_responses_on_heroku beta
|
./scripts/load_survey_responses_on_heroku ecp-sqm-beta
|
||||||
|
|
||||||
# on heroku production environment
|
# on heroku production environment
|
||||||
./scripts/load_survey_responses_on_heroku dashboard
|
./scripts/load_survey_responses_on_heroku ecp-sqm-dashboard
|
||||||
```
|
```
|
||||||
|
|
||||||
There is also an example one-off task to load a single csv at a time.
|
There is also an example one-off task to load a single csv at a time.
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ APP=$1
|
||||||
|
|
||||||
heroku login
|
heroku login
|
||||||
|
|
||||||
heroku run:detached -a mciea-$APP bundle exec rake data:load_survey_responses
|
heroku run:detached -a $APP bundle exec rake data:load_survey_responses
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue