Skip to content

Commit

Permalink
Update deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Jul 28, 2019
1 parent e810112 commit ad57842
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ buildf:
build: buildf bin/wakeci

deploy: build
ssh wakeci sudo systemctl stop ${BINARY}
ssh wakeci mkdir wakedir
ssh wakeci mkdir wakeconfig
ssh wakeci sudo systemctl stop ${BINARY} || exit 0
ssh wakeci rm -f ${BINARY}
scp bin/${BINARY} wakeci:~/
ssh wakeci sudo setcap cap_net_bind_service=+ep wakeci
ssh wakeci sudo setcap cap_net_bind_service=+ep ${BINARY}
ssh wakeci sudo systemctl start ${BINARY}
ssh wakeci sudo systemctl status ${BINARY}

Expand Down
2 changes: 1 addition & 1 deletion config/wakeci.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Group=fedora
Restart=always
RestartSec=5s
WorkingDirectory=/home/fedora/
ExecStart=/home/fedora/wakeci -port 443 -hostname ci.yauhen.space
ExecStart=/home/fedora/wakeci -port 443 -hostname ci.yauhen.space -wdir /home/fedora/wakedir/ -cdir /home/fedora/wakeconfig/

[Install]
WantedBy=multi-user.target

0 comments on commit ad57842

Please sign in to comment.