niclas-timm / laravel-nextjs-starter

A Starter Kit for applications with Laravel as the API and NextJS for the Frontend
308 stars 82 forks source link

Cant Use PM2 environment to deploy #30

Closed YnievesDotNet closed 3 years ago

YnievesDotNet commented 3 years ago

I has tried of deploy, when I use the command # yarn start, the system run fine.

but i has tried of run as daemon using pm2, and get this error

/usr/bin/yarn: line 3: /aquota.user: Permission denied
/usr/bin/yarn: line 4: /aquota.user: Permission denied
/usr/bin/yarn: line 5: use strict: command not found
/usr/bin/yarn: line 7: var: command not found
/usr/bin/yarn: line 8: syntax error near unexpected token `('
/usr/bin/yarn: line 8: `var majorVer = parseInt(ver.split('.')[0], 10);'

Thanks