Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
capstone-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neil Harlow
capstone-server
Commits
c31a5e68
Commit
c31a5e68
authored
9 years ago
by
Neil
Browse files
Options
Downloads
Patches
Plain Diff
started on git hook
parent
ca1186f1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
build.sh
+2
-0
2 additions, 0 deletions
build.sh
hook_server.js
+12
-0
12 additions, 0 deletions
hook_server.js
with
15 additions
and
0 deletions
.DS_Store
0 → 100644
+
0
−
0
View file @
c31a5e68
File added
This diff is collapsed.
Click to expand it.
.gitignore
0 → 100644
+
1
−
0
View file @
c31a5e68
*.pem
This diff is collapsed.
Click to expand it.
build.sh
0 → 100644
+
2
−
0
View file @
c31a5e68
git clone https://gitlab.cs.washington.edu/nharlow/capstone-server.git server
cd
server
&&
node server.js
This diff is collapsed.
Click to expand it.
hook_server.js
0 → 100644
+
12
−
0
View file @
c31a5e68
var
util
=
require
(
'
util
'
),
exec
=
require
(
'
child_process
'
).
exec
;
var
http
=
require
(
"
http
"
);
var
server
=
http
.
createServer
(
function
(
request
,
response
)
{
if
(
request
.
method
==
'
POST
'
)
{
// Post request from git hook, Should really check the origin but dont care for now
exec
(
'
./build
'
);
}
});
server
.
listen
(
80
);
\ No newline at end of file
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