# debug
env ENV=debug air
# sit
env ENV=release go run main.go
# release
cp ./.env /.env
go build -o /app
env ENV=release /app &
# -- on local machine
docker tag yszm-api shiyiya/yszm-api
docker push shiyiya/yszm-api
# -- on server
docker pull shiyiya/yszm-api
# -- on local machine
docker save -o image.zip example
scp image.zip <user>@<server-addres>:<target-location># -- on server
docker load -i <path-to-image.zip># docker
docker-compose up
docker-compose build
docker buildx build --platform=linux/amd64 -t yszm/api:0.0.1 .# Apple M1
docker build -t shiyiya/yszm-api .
docker run --name yszm shiyiya/yszm-api