-
Notifications
You must be signed in to change notification settings - Fork 1
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 #6 from mniYUNSU/dev
[Server] / #2 / deploy : sh ํ์ผ ์ถ๊ฐ
- Loading branch information
Showing
5 changed files
with
33 additions
and
1 deletion.
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,3 +1,3 @@ | ||
.env | ||
client/node_modules | ||
server/node_modules | ||
server/node_modules |
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,16 @@ | ||
version: 0.0 | ||
os: linux | ||
files: | ||
- source: / | ||
destination: /home/ubuntu/Jurimma | ||
|
||
hooks: | ||
ApplicationStop: | ||
- location: scripts/stop.sh | ||
runas: root | ||
AfterInstall: | ||
- location: scripts/initialize.sh | ||
runas: root | ||
ApplicationStart: | ||
- location: scripts/start.sh | ||
runas: root |
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,9 @@ | ||
#!/bin/bash | ||
cd /home/ubuntu/Jurimma/server | ||
npm install | ||
npm install pm2@latest -g | ||
sudo apt-get update | ||
sudo apt-get install authbind | ||
sudo touch /etc/authbind/byport/80 | ||
sudo chown ubuntu /etc/authbind/byport/80 | ||
sudo chmod 755 /etc/authbind/byport/80 |
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,3 @@ | ||
#!/bin/bash | ||
cd /home/ubuntu/Jurimma/server | ||
authbind --deep pm2 start app.js |
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,4 @@ | ||
#!/bin/bash | ||
cd /home/ubuntu/Jurimma/server | ||
pm2 stop app.js 2> /dev/null || true | ||
pm2 delete app.js 2> /dev/null || true |