-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split build and copy scripts, now logging fatal errors on main http s…
…erve func
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 1,10 @@ | ||
#!/bin/bash | ||
|
||
#rsync -crv nate@workdawg1:/home/nate/cephfs/linux/programming/goinverter /opt | ||
#go build -o ./bin/goinverter ./src | ||
PREVDIR=$(pwd) | ||
cd /opt/goinverter | ||
|
||
# ensure id_rsa pub/priv files in C:\Users\Nate\.ssh first | ||
ssh pidawg2 "rm -rf /opt/goinverter/src/*" | ||
scp -r C:/Users/Nate/go/src/_nate/goinverter/src pidawg2:/opt/goinverter/ | ||
#ssh pidawg2 "chmod 755 /opt/goinverter/.git && chmod 755 /opt/goinverter/bin && chmod 755 /opt/goinverter/src" | ||
go build -o ./bin/goinverter.new ./src | ||
mv /opt/goinverter/bin/goinverter /opt/goinverter/bin/goinverter.bak | ||
mv /opt/goinverter/bin/goinverter.new /opt/goinverter/bin/goinverter | ||
|
||
cd $PREVDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,6 @@ | ||
#!/bin/bash | ||
|
||
# ensure id_rsa pub/priv files in C:\Users\Nate\.ssh first | ||
ssh pidawg2 "rm -rf /opt/goinverter/src/*" | ||
scp -r C:/Users/Nate/go/src/_nate/goinverter/src pidawg2:/opt/goinverter/ | ||
#ssh pidawg2 "chmod 755 /opt/goinverter/.git && chmod 755 /opt/goinverter/bin && chmod 755 /opt/goinverter/src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters