Required environment variables
Note 1: check whether a file named
.env is present in the root directory of Astuto. If not, create it. You can copy the template of .env-example.
Note 2: each time you change an environment variable inside
.env you need to stop docker containers and run
script/docker-run.sh to start them again.
Note 3: you should never use double quotation marks, even for strings with multiple words (e.g.
APP_NAME=Your App Name is good,
APP_NAME="Your App Name" is bad).
You have to define the following environment variables inside the
|ENVIRONMENT||development, production||The environment in which Astuto has to run. If you don't know what it is, use production. You must run
|SECRET_KEY_BASE||string of 64 chars||Copy the 64 random hex characters from this website.|
|POSTGRES_USER||string||Username to access the database. It will also be the name of the database.|
|POSTGRES_PASSWORD||string||Password to access the database.|
|APP_NAME||string||The name of your product. It will appear in the header and title of the website.|
|SHOW_LOGO||yes, no||If yes then a logo will be shown in the header. To setup a custom logo you have to replace the default one at
|POSTS_PER_PAGE||number||Number of posts to show per page. Suggested value is 15.|
|EMAIL_CONFIRMATION||yes, no||whether your user will have to confirm their email addresses or not. Since emails don't work yet in Astuto, set it to no.|