Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 1.24 KB

File metadata and controls

33 lines (30 loc) · 1.24 KB

Deployment

This project uses Docker for deployment. To build the image, use the following command:

docker build -t cedoromal/personal .

To run the image, use the following command:

docker run -p 8080:8080 cedoromal/personal

By default, Gin is in debug mode. If you wish to set it to release mode, simply add -e GIN_MODE=release to the docker run command. For example:

docker run -p 8080:8080 -e GIN_MODE=release cedoromal/personal

You may also change port 8080 to whatever port you want to use.

Development

This project uses air for live reloads, and Standalone Tailwind CLI for styling.

air

To automatically re-compile on change, install air using your preferred installation method and run the following command on your terminal:

air

Tailwind CLI

To watch for changes and automatically update main.css, download the Standalone Tailwind CLI (for Linux) using the ./download_tailwindcss.sh script

./download_tailwindcss.sh

and use the downloaded Tailwind CLI with the following command:

./tailwindcss -i ./input.css -o ./view/static/styles/main.css --watch