Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Indienet
Site
Commits
2cc2adcf
Verified
Commit
2cc2adcf
authored
Mar 17, 2018
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new data path globals in index.js
parent
e697aa1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
server/index.js
server/index.js
+2
-4
No files found.
server/index.js
View file @
2cc2adcf
...
...
@@ -3,8 +3,6 @@ const logger = require('winston')
const
app
=
require
(
'
./app
'
)
const
portFromConfiguration
=
app
.
get
(
'
port
'
)
const
path
=
require
(
'
path
'
)
const
os
=
require
(
'
os
'
)
const
fs
=
require
(
'
fs-extra
'
)
const
sodium
=
require
(
'
libsodium-wrappers
'
)
...
...
@@ -29,8 +27,8 @@ function startFeathersServer () {
}
// File-based data (e.g., configuration, etc.) is saved at ~/.indie/site
const
dataDirectoryPath
=
path
.
join
(
os
.
homedir
(),
'
.indie
'
,
'
site
'
)
const
serverSecretFilePath
=
path
.
join
(
dataDirectoryPath
,
'
server-secret.json
'
)
const
dataDirectoryPath
=
app
.
get
(
'
dataDirectoryPath
'
)
const
serverSecretFilePath
=
app
.
get
(
'
serverSecretFilePath
'
)
// On first run of the server only, create a server secret. This
// server secret is used to sign the JSON Web Tokens that we use
...
...
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