adjust the museum and museum-nginx scripts
This commit is contained in:
@ -14,7 +14,7 @@ cd $LOCAL_REPO/server
|
|||||||
# sed command to replace `server.Run(":8080")` with `server.Run(":$PORT")`
|
# 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
|
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
|
sudo cp museum $INSTALL_DIR
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ server {
|
|||||||
EOL
|
EOL
|
||||||
|
|
||||||
# Create a symbolic link to enable the site
|
# 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
|
# Reload nginx to apply changes
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
Reference in New Issue
Block a user