Last changes before game
This commit is contained in:
parent
a27c38eeb3
commit
799dd9bd8c
@ -12,7 +12,7 @@ var http = require('http');
|
|||||||
* Get port from environment and store in Express.
|
* 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);
|
app.set('port', port);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -6,7 +6,7 @@ let browserOpen = false;
|
|||||||
async function openBrowser() {
|
async function openBrowser() {
|
||||||
if(!browserOpen) {
|
if(!browserOpen) {
|
||||||
// const command = spawn("chromium-browser --display=:0 --noerrors --disable-session-crashed-bubble --disable-infobars --start-fullscreen http://localhost:3000 &")
|
// 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 => {
|
command.stdout.on('data', data => {
|
||||||
console.log("stdout: ", data.toString());
|
console.log("stdout: ", data.toString());
|
||||||
@ -28,4 +28,4 @@ async function killBrowser() {
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
openBrowser, killBrowser
|
openBrowser, killBrowser
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user