Skip to content

joseburgosguntin/gym-odin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gym-odin

setup db

export DATABASE_URL="<database-connection-string>"
cargo install sqlx-cli
sqlx db setup

run the web server

dev

sudo apt-get install -y libpq-dev
export DATABASE_URL_DEV="<database-connection-string>"
export GOOGLE_CLIENT_ID="<google-client-id>"
export GOOGLE_CLIENT_SECRET="<google-client-secret>"
odin run . -debug

prod

docker build -t gym-odin .

.env

DATABASE_URL_PROD="<database-connection-string>"
GOOGLE_CLIENT_ID="<google-client-id>"
GOOGLE_CLIENT_SECRET="<google-client-secret>"
docker run --env-file .env -p 6969:6969 -it gym-odin:latest