You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
952 B
952 B
$ cp fly-example.toml fly.toml
# $app
$ fly apps create $app
$ fly scale memory 512
$ fly vol create --size 1 mastodon_uploads
# $app-redis
$ fly apps create $app-redis
$ fly vol create --size 1 -a $app-redis mastodon_redis
$ fly deploy --config fly.redis.toml --build-target redis-server
# $app-db
$ fly pg create $app-db
# DATABASE_URL
$ fly pg attach $app-db
# $app, secret
# OTP_SECRET, SECRET_KEY_BASE
$ SECRET_KEY_BASE=$(docker run --rm -it tootsuite/mastodon:latest bin/rake secret)
$ OTP_SECRET=$(docker run --rm -it tootsuite/mastodon:latest bin/rake secret)
$ fly secrets set OTP_SECRET=$OTP_SECRET SECRET_KEY_BASE=$SECRET_KEY_BASE
$ docker run --rm -e OTP_SECRET=$OTP_SECRET -e SECRET_KEY_BASE=$SECRET_KEY_BASE -it tootsuite/mastodon:latest bin/rake mastodon:webpush:generate_vapid_key | sed 's/\r//' | fly secrets import
$ vim fly.toml
# domain
$ fly certs add MYDOMAIN.COM
$ fly certs add WWW.MYDOMAIN.COM
$ fly deploy