Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
surfer-okd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PUBLIC
surfer-okd
Commits
fb372a32
Commit
fb372a32
authored
Jun 27, 2015
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper data directory
parent
cfe24a27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app.js
app.js
+4
-1
start.sh
start.sh
+1
-1
No files found.
app.js
View file @
fb372a32
...
...
@@ -2,6 +2,7 @@
'use strict'
;
var
express
=
require
(
'express'
),
morgan
=
require
(
'morgan'
),
passport
=
require
(
'passport'
),
...
...
@@ -13,7 +14,7 @@ var express = require('express'),
lastMile
=
require
(
'connect-lastmile'
),
multipart
=
require
(
'./src/multipart'
),
auth
=
require
(
'./src/auth.js'
),
files
=
require
(
'./src/files.js'
)(
path
.
resolve
(
__dirname
,
'files'
));
files
=
require
(
'./src/files.js'
)(
path
.
resolve
(
__dirname
,
process
.
argv
[
2
]
||
'files'
));
var
app
=
express
();
var
router
=
new
express
.
Router
();
...
...
@@ -40,9 +41,11 @@ app.use(passport.session());
app
.
use
(
router
);
app
.
use
(
lastMile
());
var
server
=
app
.
listen
(
3000
,
function
()
{
var
host
=
server
.
address
().
address
;
var
port
=
server
.
address
().
port
;
console
.
log
(
'Surfer listening at http://%s:%s'
,
host
,
port
);
console
.
log
(
'Using base path'
,
path
.
resolve
(
__dirname
,
process
.
argv
[
2
]
||
'files'
));
});
\ No newline at end of file
start.sh
View file @
fb372a32
...
...
@@ -4,5 +4,5 @@ set -eu
export
NODE_ENV
=
production
forever start
--workingDir
/app/code app.js
forever start
--workingDir
/app/code app.js
/app/data
forever logs
-f
0
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment