fix
parent
f75219183a
commit
34fed638fd
@ -1,3 +1,34 @@
|
||||
```sh
|
||||
$ 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
|
||||
```
|
||||
|
@ -1,5 +1,5 @@
|
||||
app = "mstdn-redis"
|
||||
app = "xxx-redis"
|
||||
|
||||
[[mounts]]
|
||||
source = "mstdn_redis"
|
||||
source = "xxx_redis"
|
||||
destination = "/data"
|
||||
|
@ -1,7 +0,0 @@
|
||||
app = "ms"
|
||||
|
||||
[deploy]
|
||||
release_command = "bundle exec rails db:setup"
|
||||
|
||||
[env]
|
||||
RAILS_ENV = "production"
|
Loading…
Reference in New Issue