Skip to content

Shift New Prod Server Infra Tasks

Andrew Kreps edited this page Mar 12, 2024 · 8 revisions

After configuring a new server (t2.micro if free tier is desired for developing and testing, t3.micro for prod w/the extra vcpu)

Swap

dd if=/dev/zero of=/swap bs=1048576 count=1024
chmod 600 /swap
mkswap /swap
swapon /swap

Add the following to /etc/fstab

/swap	                swap            swap defaults 0 0

Packages

TODO: add list of desired packges to install

Backups

Our backup s3 bucket is shift2bikes-backups-us-west-2, and contains regular backups of our eventimages and database files. Or at least, it will, once https://github.com/shift-org/shift-docs/issues/619 is completed.

Clone this wiki locally