跳到主要内容

Makefile

This application contains a Makefile to ease setup, development, and deployment.

Init and Setup Environment

ENV=<your_env> && make init
信息

The ENV variable can be set to one of the following values:

  • dev - For Development
  • prod - For Production
  • docker - For production in docker
注意

After setting up the environment, you should update the following files.

  • .env
  • config/app.yaml

Remember to update the ENV variable in .env file to the correct value.

Build Application

This will build the application for the selected environment.

make build

Run DB

This will initialize and start the databases.

make db

Run Application

This will run the server for the selected environment.

make run