on fly.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
syui 34fed638fd
fix
3 days ago
.gitignore fix readme 7 days ago
Dockerfile fix readme 7 days ago
README.md fix 3 days ago
fly-example.toml fix 3 days ago
fly.mig.toml fix 3 days ago
fly.redis.toml fix 3 days ago
start-redis-server.sh fix readme 7 days ago

README.md

$ 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