-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added script for releasing to a host via scp
- Loading branch information
Showing
2 changed files
with
25 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
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,24 @@ | ||
set -e | ||
|
||
# ------------------------------------------------------------------ | ||
# AsTeRICS Grid beta-release script | ||
# ------------------------------------------------------------------ | ||
# just builds and pushes to a sftp server of our hosting provider | ||
|
||
sshUserHost="user@host" | ||
|
||
echo "building..." | ||
npm run build | ||
|
||
echo "copy data to host..." | ||
ssh $sshUserHost "rm -rf ~/asterics-grid-beta/*" | ||
scp index.html $sshUserHost:~/asterics-grid-beta/ | ||
scp unsupported.html $sshUserHost:~/asterics-grid-beta/ | ||
scp serviceWorker.js $sshUserHost:~/asterics-grid-beta/ | ||
scp -r app $sshUserHost:~/asterics-grid-beta/app | ||
|
||
git checkout app/build | ||
|
||
echo "release to grid.beta.asterics-foundation.org successful!" | ||
|
||
|