👷
Guia Edutec DevOps
Guia Edutec by CIEB
English
English
  • Introduction
  • Database
  • Back-end
  • Front-end
Powered by GitBook
On this page
  • Step-by-step
  • 1. Access the repository on GitHub via the link
  • 2. Clone the repository to your server
  • 3. Access the created folder
  • 4. Environment variables
  • 5. Set environment variables as needed
  • 6. Run docker-compose command

Was this helpful?

Edit on GitHub

Back-end

Instructions for running the application server

PreviousDatabaseNextFront-end

Last updated 2 years ago

Was this helpful?

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

Attention!

For the functionalities to work correctly, it is mandatory to fill in the email configuration variables.

.env
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).

https://github.com/guiaedutec/geos-backend