You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ fly deploy -c fly.setup.toml # run `rails db:schema:load`, may take 2-3 minutes
71
71
```
72
72
73
-
### Sending email
73
+
####Sending email
74
74
75
75
Mastodon sends emails on signup, to confirm email addresses. It also uses emails for password resets, notifications to the server admins, and various other tasks. To have a fully-functioning Mastodon server, you'll need to create an account with an email service like [Postmark](https://postmarkapp.com), get credentials, and provide those credentials to Mastodon as env vars or secrets. See `fly.toml` for an example of the env vars you would set, and then provide your credentials as Fly secrets:
76
76
77
77
```
78
78
$ fly secrets set SMTP_LOGIN=<public token> SMTP_PASSWORD=<secret token>
79
79
```
80
80
81
-
### Custom domain (optional)
81
+
####Custom domain (optional)
82
82
83
83
1. Edit `fly.toml` and set `LOCAL_DOMAIN` to your custom domain.
84
84
2. Run `fly ips list`, and if the list is empty, run `fly ips allocate-v4`.
After you've deployed, sign up. You will hopefully get an email, but if you don't, we'll manually confirm your account regardless as part of making you an owner on the instance. Substitute your own username in this command:
Here are some notes on operating your instance in the future:
124
+
Enjoy your server.
125
125
126
-
### Upgrading Mastodon
126
+
127
+
### Operating your instance
128
+
129
+
If you still haven't gotten enough, here are some notes on how to operate your instance after it's running.
130
+
131
+
Useful references for the section include `fly scale show`,
132
+
133
+
#### Upgrading Mastodon
127
134
128
135
To upgrade to a new version of Mastodon, change the version number on the first line of `Dockerfile`, and then check the release notes for upgrade instructions.
129
136
@@ -146,11 +153,11 @@ After that, just deploy the updated container as usual, and the post-deploy migr
146
153
$ fly deploy
147
154
```
148
155
149
-
### Scaling your instance
156
+
#### Scaling your instance
150
157
151
158
If your instance attracts many users (or maybe a few users who follow a huge number of other accounts), you may notice things start to slow down, and you may run out of database, redis, or storage space.
152
159
153
-
#### A bigger VM
160
+
##### A bigger VM
154
161
155
162
If you need more web processes, or more sidekiq workers, the easiest option is to choose a larger Fly VM size via `fly scale vm`. With a larger VM, you can run more Puma processes by setting `WEB_CONCURRENCY`, and you can run more sidekiq processes by adding lines to your Procfile. Try to aim for about as many Puma+Sidekiq processes as you have cores, and review the CPU usage of your VM to know whether to adjust up or down.
0 commit comments