Add install script
This commit is contained in:
3
Makefile
3
Makefile
@@ -4,4 +4,7 @@ migrateup:
|
||||
migratedown:
|
||||
migrate -path db/migrations -database "postgresql://svevijesti:salmonela%20pljusti%20221%20hamo@localhost:5432/svevijestiweb?sslmode=disable" -verbose down
|
||||
|
||||
installserver:
|
||||
bash ./scripts/install_server.sh
|
||||
|
||||
.PHONY: migrateup migratedown
|
||||
|
||||
5
scripts/install_server.sh
Normal file
5
scripts/install_server.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo systemctl stop starenovine
|
||||
sudo cp ./server /opt/starenovine/server
|
||||
sudo systemctl start starenovine
|
||||
Reference in New Issue
Block a user