Back-end
Instructions for running the application server
Step-by-step
1. Access the repository on GitHub via the link
2. Clone the repository to your server
$ git clone https://github.com/guiaedutec/geos-backend.git
3. Access the created folder
$ cd geos-backend
4. Environment variables
At the root of the project, rename the .env.example file to just .env
5. Set environment variables as needed
RAILS_ENV=development
# Default Database Credentials
# We recommend changing the username and password in the database for security reasons!
MONGODB_HOST_1=host.docker.internal:30998
MONGODB_DATABASE=guia_edutec
MONGODB_USER=geos
MONGODB_PASS=<password-default>
# Email settings
MAIL_SERVER=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_DOMAIN=
MAIL_FROM=
MAIL_SENDER=
# URLs base
# Configure as needed
FRONTEND_URL=host.docker.internal:8001
BACKEND_URL=host.docker.internal:8000
# Enter a 128-character random hash containing numbers and lowercase letters
SECRET_KEY_BASE=
6. Run docker-compose command
~/geos-backend$ docker-compose up -d
Attention!
If the application is deployed on the Windows operating system, check the control characters in the entrypoint.sh file. It must be configured as LF (Line Feed).
Last updated
Was this helpful?