Last changes before game
This commit is contained in:
parent
a27c38eeb3
commit
799dd9bd8c
2 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ var http = require('http');
|
|||
* Get port from environment and store in Express.
|
||||
*/
|
||||
|
||||
var port = normalizePort(process.env.PORT || '3000');
|
||||
var port = normalizePort(process.env.PORT || '80');
|
||||
app.set('port', port);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ let browserOpen = false;
|
|||
async function openBrowser() {
|
||||
if(!browserOpen) {
|
||||
// const command = spawn("chromium-browser --display=:0 --noerrors --disable-session-crashed-bubble --disable-infobars --start-fullscreen http://localhost:3000 &")
|
||||
command = spawn('chromium-browser', ['--display=:0', '--incognito', '--noerrors', '--hide-crash-restore-bubble', '--disable-infobars', '--kiosk', 'http://localhost:3000']);
|
||||
command = spawn('sudo', ['-upi', 'chromium-browser', '--display=:0', '--incognito', '--noerrors', '--hide-crash-restore-bubble', '--disable-infobars', '--kiosk', 'http://localhost']);
|
||||
|
||||
command.stdout.on('data', data => {
|
||||
console.log("stdout: ", data.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue