HUB
Sign inSign up
aws-prod-to-dev logo

clevyr/aws-prod-to-dev

By clevyr

•Updated about 7 years ago

Image
0

1.2K

clevyr/aws-prod-to-dev repository overview

⁠AWS Prod to Dev Script

This is a script that can import a database dump and sync S3 buckets to match a development environment to production.

⁠Environment Variables

⁠Database Import
VariableDetailsExample
BACKUP_BUCKETThe bucket that the database dump will be stored in.database-backups
POSTGRES_HOSTThe Postgres host to connect to.database
POSTGRES_USERNAMEThe Postgres username to authenticate with.username
POSTGRES_PASSWORDThe Postgres password to authenticate with.password
POSTGRES_DATABASEThe Postgres database to import into.laravel
SCHEMA_TO_DROPThe schema to drop before running the import.public
⁠S3 Bucket Sync
VariableDetailsExample
FROM_BUCKETThe bucket to sync from.prod-files
TO_BUCKETThe bucket to sync to.dev-files
DELETEDelete files in the destination that are not in the source.true
⁠Laravel-Specific
VariableDetailsExample
DOWN_FILEThe path of the down file to create./app/storage/app/framework/down
MIGRATE_FILEThe path of the migrate file to create./app/storage/app/migrate
WWW_USERThe UID and GID of www-user. Defaults to 8282
Tag summary
Recent tags
Content type
Image
Digest
Size
48.9 MB
Last updated
about 7 years ago
docker pull clevyr/aws-prod-to-dev:latest