Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #35

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b679b6b
first commit
Sep 23, 2022
3d999d4
update message
Sep 23, 2022
b351446
second update
Sep 23, 2022
5157684
update2 message
Sep 23, 2022
49d5f92
Merge pull request #2 from YasserElmenshawy/pr2
YasserElmenshawy Sep 23, 2022
d6a3ea0
update 3
YasserElmenshawy Sep 23, 2022
bd0ce0e
update 4
YasserElmenshawy Sep 23, 2022
d570c30
change the message
YasserElmenshawy Sep 23, 2022
dac6893
change mesage2
YasserElmenshawy Sep 23, 2022
79a1821
change message3
YasserElmenshawy Sep 23, 2022
521d52a
change 4
YasserElmenshawy Sep 23, 2022
bfaac78
change5
YasserElmenshawy Sep 23, 2022
f51ca50
change 6
YasserElmenshawy Sep 23, 2022
bcda6fa
update7 message
Sep 23, 2022
2225a07
update7 message
Sep 23, 2022
79752fc
Merge pull request #3 from YasserElmenshawy/pr2
YasserElmenshawy Sep 23, 2022
84c690b
change11
YasserElmenshawy Sep 23, 2022
2eb2d92
test web hook
YasserElmenshawy Sep 23, 2022
58fd386
change
YasserElmenshawy Sep 24, 2022
595efbd
test
YasserElmenshawy Sep 24, 2022
77428e6
update
YasserElmenshawy Sep 25, 2022
400315d
update
YasserElmenshawy Sep 25, 2022
cd72187
update
YasserElmenshawy Sep 25, 2022
412ba7d
update
YasserElmenshawy Sep 25, 2022
9b78f48
update
YasserElmenshawy Sep 25, 2022
77900b4
update
YasserElmenshawy Sep 25, 2022
cf52b9d
update
YasserElmenshawy Sep 28, 2022
c98b446
update
YasserElmenshawy Sep 28, 2022
371b28f
Update index.js
YasserElmenshawy Sep 28, 2022
af171f4
create runAPP.sh
YasserElmenshawy Sep 29, 2022
e223f23
run APP
YasserElmenshawy Sep 29, 2022
8340625
stop APP
YasserElmenshawy Sep 29, 2022
8260d71
update
YasserElmenshawy Oct 1, 2022
36ae7db
update
YasserElmenshawy Oct 2, 2022
8e218be
update
YasserElmenshawy Oct 2, 2022
fbb21d5
update
YasserElmenshawy Oct 2, 2022
12959b1
update
YasserElmenshawy Oct 2, 2022
02fb63c
daploy
YasserElmenshawy Oct 4, 2022
3438757
update
YasserElmenshawy Oct 4, 2022
4c2d688
update
YasserElmenshawy Oct 4, 2022
695ddb3
update
YasserElmenshawy Oct 4, 2022
3ae827c
update
YasserElmenshawy Oct 4, 2022
b4aa4e1
update
YasserElmenshawy Oct 4, 2022
0521090
update
YasserElmenshawy Oct 9, 2022
cb8bed8
update
YasserElmenshawy Oct 9, 2022
280df8c
update
YasserElmenshawy Oct 9, 2022
2c92841
update
YasserElmenshawy Oct 9, 2022
d6971d6
update
YasserElmenshawy Oct 10, 2022
28e3870
update
YasserElmenshawy Oct 10, 2022
af21c80
update
YasserElmenshawy Oct 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ssh 192.168.1.2 < cd /var/lib/jenkins/workspace/test
git pull
npm install --production
pm2 restart all
exit
EOF
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const port = process.env.PORT || 3000;

const server = http.createServer((req, res) => {
res.statusCode = 200;
const msg = 'Hello Node!\n'
const msg = 'Hellooooooo00000oooo to Node! \n test2 \n node app'
res.end(msg);
});

Expand Down
14 changes: 14 additions & 0 deletions runApp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh



echo 'The following "npm" command runs your Node.js application'

set -x
npm start &
sleep 1
echo $! > .pidfile
set +x

echo 'Now you can'
echo 'Visit http://ServerIp:9981 to see your Node.js application'
14 changes: 14 additions & 0 deletions script/runApp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh



echo 'The following "npm" command runs your Node.js application'

set -x
npm start &
sleep 1
echo $! > .pidfile
set +x

echo 'Now you can'
echo 'Visit http://ServerIp:9981 to see your Node.js application'
7 changes: 7 additions & 0 deletions script/stopApp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

echo 'The following command terminates the "npm start" process using its PID'
echo '(written to ".pidfile"), all of which were conducted when "deliver.sh"'
echo 'was executed.'
set -x
kill -9 $(cat .pidfile)