-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #379 from ggwadera/docker
Run apps inside Docker containers
- Loading branch information
Showing
9 changed files
with
461 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/sh | ||
cd .. | ||
GIT_DIR='.git' | ||
DOMAIN=$(basename $(pwd)) | ||
umask 002 && git reset --hard | ||
git clean -f | ||
git checkout master | ||
git branch -D prod | ||
npm install | ||
sudo -u myproxy pm2 startOrRestart deploy.config.js --env production --update-env | ||
echo "Starting the container..." | ||
curl --silent --unix-socket /var/run/docker.sock -X POST "http:/localhost/containers/${DOMAIN}/restart" | ||
echo "Your app is running at https://${DOMAIN}" |
Oops, something went wrong.