Edit scripts too, oops

pull/71/head
Ben Visness 2 months ago
parent 726cd0fd43
commit d3f5057d41
  1. 2
      server/deploy.sh
  2. 2
      server/root.Makefile
  3. 2
      server/serversetup.sh
  4. 8
      src/main.go

@ -23,7 +23,7 @@ set -euo pipefail
cd /home/hmn/hmn
git fetch --all
git reset --hard origin/$branch
go build -o /home/hmn/bin/hmn src/main.go
go build -o /home/hmn/bin/hmn .
SCRIPT
echo "Running migrations..."

@ -15,7 +15,7 @@ deploy: ## Manually build and deploy a branch of the website.
/home/hmn/hmn/server/deploy.sh
build: ## Rebuild the website binary
sudo -u hmn --preserve-env=PATH bash -c "cd ~/hmn && go build -o /home/hmn/bin/hmn src/main.go"
sudo -u hmn --preserve-env=PATH bash -c "cd ~/hmn && go build -o /home/hmn/bin/hmn ."
edit-config: ## Edit the website config
vim /home/hmn/hmn/src/config/config.go

@ -289,7 +289,7 @@ if [ $checkpoint -lt 110 ]; then
cd /home/hmn/hmn
echo "Building the site for the first time. This may take a while..."
go build -v -o /home/hmn/bin/hmn src/main.go
go build -v -o /home/hmn/bin/hmn .
SCRIPT
echo 'PATH=$PATH:/home/hmn/bin' >> ~/.bashrc

@ -0,0 +1,8 @@
package main
import "fmt"
func main() {
fmt.Println("main.go has moved! You should now run:")
fmt.Println("go run .")
}
Loading…
Cancel
Save