Final tweaks for deploy

virtual screen size does matter,and curv is a little more memory hungry
than the other functions
This commit is contained in:
Kurt Hutten
2021-11-30 15:15:54 +11:00
parent 9797405834
commit 172e19165f
7 changed files with 15 additions and 99 deletions

View File

@@ -126,6 +126,7 @@ export async function storeAssetAndReturnUrl({
try {
buffer = await readFile(fullPath, { encoding: 'base64' })
await runCommand(`rm -R /tmp/${tempFile}`)
} catch (e) {
console.log('read file error', e)
const response = {

View File

@@ -32,7 +32,7 @@ export const runCurv = async ({
const customizerPath = `/tmp/${tempFile}/customizer.param`
const command = [
'xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" curv',
'xvfb-run --auto-servernum --server-args "-screen 0 3840x2160x24" curv',
`-o ${imPath}`,
`-O xsize=${x}`,
`-O ysize=${y}`,

View File

@@ -117,6 +117,7 @@ functions:
method: post
cors: true
timeout: 25
memorySize: 3008
curvstl:
image:
name: curvimage