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/personalBy 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/personalYou may also change port 8080 to whatever port you want to use.
This project uses air for live reloads, and Standalone Tailwind CLI for styling.
To automatically re-compile on change, install air using your preferred installation method and run the following command on your terminal:
airTo watch for changes and automatically update main.css, download the Standalone Tailwind CLI (for Linux) using the ./download_tailwindcss.sh script
./download_tailwindcss.shand use the downloaded Tailwind CLI with the following command:
./tailwindcss -i ./input.css -o ./view/static/styles/main.css --watch