sulla
sulla copied to clipboard
How to run --no-sandbox on Heroku
I'm trying to host a Sulla application on Heroku, but i can't find where i can run --no-sandbox parameter for Sulla
Add this builpack
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-google-chrome.git
try these options
sulla.create('chat', ()=> {}, { headless: true, // Headless chrome devtools: false, // Open devtools by default useChrome: true, // If false will use Chromium instance debug: false, // Opens a debug session logQR: true, // Logs QR automatically in terminal browserArgs: ['--no-sandbox'], // Parameters to be added into the chrome browser instance refreshQR: 15000, // Will refresh QR every 15 seconds, 0 will load QR once. Default is 30 seconds }).then((client) => get_image(client));
How to run our application in Heroku,usually i execute node index.js command to run my application on my laptop. In heroku, how do i do that?
I use npm start with sulla in the server.js