Open timaschew opened 2 years ago
If the email test is working, and you've copied the contents of the .env.production
file as output by the mastodon:setup
task, sending e-mails should work… it seems the most likely explanations are that either you did not copy them correctly, or they weren't read correctly. Does your password contain characters such as a space, "
, '
, #
or $
or {
?
It's realy confusing that the samle env file has totally different variables: https://github.com/mastodon/mastodon/blob/main/.env.production.sample
I'm not sure what you mean. The .env.production.sample
features a small subset of the available configuration variables.
For my final config I was picking variables from here: #17923
If the test from mastodon:setup
worked, you should be using its output as your .env.production
.
If I change variables in
.env.production
file, is it enough to just do a ´docker-compose restart`?
As far as I know, yes.
aI will try to setup it from scratch, but please tell me how to do a setup with docker. I did not found any instructions.
When I try to do docker-compose run -e "RAILS_ENV=RAILS_ENV" --rm web bundle exec rake mastodon:setup
after a fresh git clone, I receive this error:
ERROR: Couldn't find env file: /root/mastodon/.env.production`
Copy the .env.production.sample
file or create an empty file. The file will then have to be (manually) overwritten by the output shown by mastodon:setup
.
Steps to reproduce the problem
docker-compose up -d
.env.production
docker-compose restart
If I change variables in
.env.production
file, is it enough to just do a ´docker-compose restart`?Expected behaviour
Email is send
Actual behaviour
No email is send; error in the logs
Specifications
Here is my config:
It's realy confusing that the samle env file has totally different variables: https://github.com/mastodon/mastodon/blob/main/.env.production.sample
Also the the
mastodon:setup
is not setting the server, login, password, see https://github.com/mastodon/mastodon/issues/18384For my final config I was picking variables from here: https://github.com/mastodon/mastodon/discussions/17923