Build static | Goffee
Description: Check your app

Skip to main content

# Build static

### Check your app​

To deploy the application in production mode, navigate to the project directory and run the following command:

    goffee run:prod

In this mode, the application will use the configuration file `.env`. Then you can test if everything is running as planned, if your environment settings are correct, etc.

### Build binary​

To build a binary Linux compatible, navigate to the project directory and compile using the standard Golang command.

    GOOS=linux GOARCH=amd64 go build -o nameofyourbinary

This will generate a binary file that you can use to install on your production systems.

Note that this binary file will look for other files and folders in the same path that you should add to your installation. The files are:

    nameofyourbinary -----------------> binary compiled
    .env  ----------------------------> environment variables
    storage/ -------------------------> a place to store files,
    ├── templates/ -------------------> custom templates
    ├── public/ ----------------------> public files without routing system
    tls/ -----------------------------> tls certificates (optional)