-
Notifications
You must be signed in to change notification settings - Fork 1
Updates necessary for the Heroku deployment #9
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
Open
berezovskyi
wants to merge
40
commits into
master
Choose a base branch
from
b8-heroku
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
2a08945
remove node 0.10 pin
berezovskyi 006f879
update MONGO env config
berezovskyi aacb124
update MONGO connection init
berezovskyi 4547f77
update MONGO db call
berezovskyi 0b8c8fb
bind to the right port
berezovskyi 8a1a01f
bind to the right port
berezovskyi 3a6e50a
update config
berezovskyi 957f7e5
update config
berezovskyi 7fe9ebb
update config
berezovskyi 9a3256a
play with N3 version
berezovskyi 28478d3
play with N3 version
berezovskyi 66e04e4
play with N3 version
berezovskyi 2d8bdd1
remove port config
berezovskyi 7d2cdde
do not normalise
berezovskyi 317656f
handle nil uris
berezovskyi 81eb4bf
handle nil uris
berezovskyi dbbbd9b
handle nil uris
berezovskyi 27b9e47
handle nil uris
berezovskyi c34f5f0
handle nil uris
berezovskyi 4a55c0f
handle nil uris
berezovskyi eb1cbd3
fix HTTPS URIs
berezovskyi e0958ba
IRI test through isNamedNode
berezovskyi a5d08d3
Add a string check function
berezovskyi 1d8d123
Pass through non-string objects
berezovskyi dfb579b
Convert all objects to JSON in the log
berezovskyi 1c15cf9
Look into 'id' key of the object in the viz
berezovskyi d4784ef
Use N3.Util.isNamedNode always
berezovskyi d5d0380
Better string detection
berezovskyi b55db1b
Update config for localhost
berezovskyi 0a34b43
Bind to any host
berezovskyi f8a8e51
host -> hostname key in the config
berezovskyi 26edfe5
Use protocol/port from the latest Node
berezovskyi 61e0685
Update URI handling
berezovskyi d701d12
fix URI handling
berezovskyi 897d1b9
proper protocol handling
berezovskyi b3582a5
use new URL API
berezovskyi c3e8910
typo
berezovskyi b908a4d
undo a bug
berezovskyi af75963
fix
berezovskyi 99b068a
quirks for old/new URL API
berezovskyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"scheme": "http", | ||
"host": "localhost", | ||
"protocol": "http", | ||
"bind": "0.0.0.0", | ||
"port": 3000, | ||
"host": "localhost", | ||
"context": "/r", | ||
"mongoURL": "mongodb://localhost:27017/ldp" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,13 +67,13 @@ function ensureIndex() { | |
} | ||
|
||
exports.init = function(env, callback) { | ||
require('mongodb').connect(env.mongoURL, function(err, conn) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have:
Here. |
||
require('mongodb').connect(env.mongoURL, { useNewUrlParser: true }, function(err, conn) { | ||
if (err) { | ||
callback(err); | ||
return; | ||
} | ||
|
||
db = conn; | ||
db = conn.db(); | ||
exports.graphs = graphs(); | ||
console.log("Connected to MongoDB at: "+env.mongoURL); | ||
ensureIndex(); | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scheme and host are the w3c names used in https://www.w3.org/Addressing/URL/url-spec.txt. These should be named using standard terms in the config.json file to avoid confusion. scheme is the name of the protocol to use, host is the name of the node to bind to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made this change so that the JSON keys match the attributes in the https://nodejs.org/docs/latest-v10.x/api/url.html