adjust the museum and museum-nginx scripts

This commit is contained in:
2024-11-10 13:55:35 -07:00
parent 35c892187b
commit a23510203c
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ cd $LOCAL_REPO/server
# sed command to replace `server.Run(":8080")` with `server.Run(":$PORT")`
sed -i "s/server.Run(\":8080\")/server.Run(\":$PORT\")/g" cmd/museum/main.go
go build -o museum cmd/museum/main.go
/usr/local/go/bin/go build -o museum cmd/museum/main.go
sudo cp museum $INSTALL_DIR

View File

@ -19,7 +19,7 @@ server {
EOL
# Create a symbolic link to enable the site
sudo ln -s /etc/nginx/sites-available/museum /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/museum.sa.vin.conf /etc/nginx/sites-enabled/
# Reload nginx to apply changes
sudo systemctl reload nginx