Dev environment
The dev environment is used for internal testing and development. RID should generally not be using the dev environment, but rather the staging environment for testing.
The dev environment is hosted on gt-1(gt-1.gametailors.com). Files are stored on Hetzner Object Storage.
Note that in the future, for contractual reasons, the dev environment may be moved to a TransIP server.
Deployments happen automatically using a Bitbucket Pipeline on the develop branch. The containers are pulled using the latest tag.
Deployments work by copying the contents of environments/dev/server to the /opt/rid-code-dev directory on the server, and running the update script.
Backup and restore
Backups are made automatically to the gt-dev-rid-code-backup S3 bucket. This bucket is managed using Terraform. The configuration for this is in environments/dev/terraform. Note that terraform updates are not automatically deployed/applied, and must be done manually.
To backup the dev environment, log in to the server and backup.sh:
ssh gametailors@gt-1.gametailors.com
sudo su - rid-code-dev
cd /opt/rid-code-dev
./backup.shTo restore, log in to the server and run restore.sh:
ssh gametailors@gt-1.gametailors.com
sudo su - rid-code-dev
cd /opt/rid-code-dev
./restore.shThe script will ask which backup to restore.