Skip to content
Snippets Groups Projects
Unverified Commit 31e9025d authored by James Long's avatar James Long Committed by GitHub
Browse files

Merge pull request #6 from UnexomWid/master-hostname-binding

Add hostname binding
parents 1b42bc0e 0ad3f126
Branches
No related tags found
No related merge requests found
...@@ -43,8 +43,8 @@ async function run() { ...@@ -43,8 +43,8 @@ async function run() {
await accountApp.init(); await accountApp.init();
await syncApp.init(); await syncApp.init();
console.log('Listening on ' + config.port + '...'); console.log('Listening on ' + config.hostname + ':' + config.port + '...');
app.listen(config.port); app.listen(config.port, config.hostname);
} }
run().catch(err => { run().catch(err => {
......
...@@ -9,6 +9,7 @@ try { ...@@ -9,6 +9,7 @@ try {
config = { config = {
mode: 'development', mode: 'development',
port: 5006, port: 5006,
hostname: '0.0.0.0',
serverFiles: join(root, 'server-files'), serverFiles: join(root, 'server-files'),
userFiles: join(root, 'user-files') userFiles: join(root, 'user-files')
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment