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:
@@ -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 = {
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -117,6 +117,7 @@ functions:
|
||||
method: post
|
||||
cors: true
|
||||
timeout: 25
|
||||
memorySize: 3008
|
||||
curvstl:
|
||||
image:
|
||||
name: curvimage
|
||||
|
||||
Reference in New Issue
Block a user