This commit is contained in:
@@ -371,7 +371,18 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
log.LogDebug($"Not Windows: setting executable path for chrome to expected '/usr/bin/chromium-browser'");
|
log.LogDebug($"Not Windows: setting executable path for chrome to expected '/usr/bin/chromium-browser'");
|
||||||
lo.ExecutablePath = "/usr/bin/chromium-browser";//this is the default path for docker based alpine dist, but maybe not others, need to make a config setting likely
|
lo.ExecutablePath = "/usr/bin/chromium-browser";//this is the default path for docker based alpine dist, but maybe not others, need to make a config setting likely
|
||||||
lo.Args = new string[] { "--no-sandbox" };
|
// lo.Args = new string[] { "--no-sandbox" };
|
||||||
|
/*
|
||||||
|
https://github.com/puppeteer/puppeteer/issues/1825
|
||||||
|
const chromeFlags = [
|
||||||
|
'--headless',
|
||||||
|
'--no-sandbox',
|
||||||
|
"--disable-gpu",
|
||||||
|
"--single-process",
|
||||||
|
"--no-zygote"
|
||||||
|
]
|
||||||
|
*/
|
||||||
|
lo.Args = new string[] { "--headless --no-sandbox --disable-gpu --single-process --no-zygote" };
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -383,6 +394,7 @@ namespace AyaNova.Biz
|
|||||||
//https://stackoverflow.com/questions/53367966/puppeteer-sharp-still-appear-many-chromium-instance-in-process-task-manager-when
|
//https://stackoverflow.com/questions/53367966/puppeteer-sharp-still-appear-many-chromium-instance-in-process-task-manager-when
|
||||||
log.LogDebug($"Launching headless Chrome now:");
|
log.LogDebug($"Launching headless Chrome now:");
|
||||||
using (var browser = await Puppeteer.LaunchAsync(lo))
|
using (var browser = await Puppeteer.LaunchAsync(lo))
|
||||||
|
|
||||||
using (var page = await browser.NewPageAsync())
|
using (var page = await browser.NewPageAsync())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace AyaNova.Util
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
internal static class AyaNovaVersion
|
internal static class AyaNovaVersion
|
||||||
{
|
{
|
||||||
public const string VersionString = "8.0.0-alpha.16";
|
public const string VersionString = "8.0.0-alpha.17";
|
||||||
public const string FullNameAndVersion = "AyaNova server " + VersionString;
|
public const string FullNameAndVersion = "AyaNova server " + VersionString;
|
||||||
}//eoc
|
}//eoc
|
||||||
}//eons
|
}//eons
|
||||||
Reference in New Issue
Block a user