Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
4ff3968e
Commit
4ff3968e
authored
13 years ago
by
Lloyd Hilaiel
Browse files
Options
Downloads
Patches
Plain Diff
replace references to ping.txt with __heartbeat__. issue #481
parent
d02dcba3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DEPLOYMENT.md
+7
-7
7 additions, 7 deletions
DEPLOYMENT.md
browserid/tests/lib/start-stop.js
+1
-1
1 addition, 1 deletion
browserid/tests/lib/start-stop.js
with
8 additions
and
8 deletions
DEPLOYMENT.md
+
7
−
7
View file @
4ff3968e
...
...
@@ -156,16 +156,16 @@ post update hook, annotated to help you follow along:
### 5. get node servers running
At this point, pushing code to gitolite will cause /home/browserid/code to be updated. Now
we need to get the servers running! Manually we can verify that the servers will run.
we need to get the servers running! Manually we can verify that the servers will run.
For the browser id server:
cd /home/browserid/code/browserid && sudo -u www-data ./run.js
cd /home/browserid/code/browserid && sudo -u www-data ./run.js
And for the verifier:
cd /home/browserid/code/verifier && sudo -u www-data ./run.js
cd /home/browserid/code/verifier && sudo -u www-data ./run.js
Now let's set up [monit] to restart the node.js servers:
Now let's set up [monit] to restart the node.js servers:
1.
install monit:
`sudo apt-get install monit`
2.
enable monit by editing
`/etc/default/monit`
...
...
@@ -181,7 +181,7 @@ include /etc/monit.d/*
<pre>
#!/bin/bash
/usr/local/bin/node $1 > $(dirname $1)/error.log 2>&1 &
/usr/local/bin/node $1 > $(dirname $1)/error.log 2>&1 &
</pre>
5.
create a file to run the verifier at
`/etc/monit.d/verifier`
:
...
...
@@ -192,7 +192,7 @@ check host verifier with address 127.0.0.1
as uid "www-data" and gid "www-data"
stop program = "/usr/bin/pkill -f '/usr/local/bin/node /home/browserid/code/verifier/run.js'"
if failed port 62800 protocol HTTP
request /
ping.txt
request /
__heartbeat__
with timeout 10 seconds
then restart
</pre>
...
...
@@ -205,7 +205,7 @@ check host browserid.org with address 127.0.0.1
as uid "www-data" and gid "www-data"
stop program = "/usr/bin/pkill -f '/usr/local/bin/node /home/browserid/code/browserid/run.js'"
if failed port 62700 protocol HTTP
request /
ping.txt
request /
__heartbeat__
with timeout 10 seconds
then restart
</pre>
...
...
This diff is collapsed.
Click to expand it.
browserid/tests/lib/start-stop.js
+
1
−
1
View file @
4ff3968e
...
...
@@ -71,7 +71,7 @@ exports.addStartupBatches = function(suite) {
return
true
;
},
"
server should be running
"
:
{
topic
:
wsapi
.
get
(
'
/
ping.txt
'
),
topic
:
wsapi
.
get
(
'
/
__heartbeat__
'
),
"
server is running
"
:
function
(
r
,
err
)
{
assert
.
equal
(
r
.
code
,
200
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment