This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlton Duffett
committed
Jun 28, 2017
1 parent
4cb7165
commit 33a9f3a
Showing
2 changed files
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
gofhirpath=$GOPATH/src/github.com/synthetichealth/gofhir | ||
optdir=/opt/gofhir | ||
branch=stu3_jan2017 | ||
|
||
here=`pwd` | ||
|
||
echo "Fetching latest..." | ||
cd $gofhirpath | ||
git checkout $branch | ||
git pull | ||
echo "Building..." | ||
go build | ||
echo "Stopping gofhir-auto.service..." | ||
sudo systemctl stop gofhir-auto.service | ||
echo "Moving files..." | ||
sudo cp gofhir $optdir | ||
echo "Restarting gofhir-auto.service..." | ||
sudo systemctl start gofhir-auto.service | ||
cd $here | ||
echo "Done" |
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,23 @@ | ||
#!/bin/bash | ||
|
||
sitepath=$HOME/synthetichealth/syntheticmass/site | ||
servepath=/var/www/syntheticmass.mitre.org | ||
|
||
here=`pwd` | ||
|
||
cd $sitepath | ||
echo "Fetching latest..." | ||
git pull | ||
echo "Building site..." | ||
npm run build | ||
echo "Stopping apache..." | ||
sudo systemctl stop apache2.service | ||
echo "Moving files..." | ||
sudo cp -r build $servepath | ||
cd $servepath | ||
sudo rm -r public_html | ||
sudo mv build public_html | ||
echo "Restarting apache..." | ||
sudo systemctl restart apache2.service | ||
cd $here | ||
echo "Done" |