By vedranserbu
I need to change my SMTP configuration, and all tutorials point to said .env.production file somewhere in Mastodon folder, but I simply can not find it.
All the best, Vedran
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I was reffering to this article - https://docs.joinmastodon.org/admin/config/ - where that .env.production “dotenv” file is mentioned
Hi there,
Mastodon is installed under /home/mastodon/live. To browse or change the
files, login to the mastodon system user with:
sudo su - mastodon
Once you’ve switched to the mastodon user, you can access the live directory with:
cd /home/mastodon/live
And once in there, you will see the .env.production file.
Hope that this helps. Regards, Bobby
To edit the production config file perform the following steps.
# Login as the mastodon user
sudo su - mastodon
# Navigate to live folder
cd live
# Edit the production env config file
nano .env.production
The reason why you can’t “find” the file is because dot-files (files starting with a .) are by default hidden.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.