AWS Elastic Beanstalk Override the initial command 'npm start' to 'pnpm start'

220 Views Asked by At

Previous EB UI provide a 'Command Box' to allow us override the initial command. But now the new UI I just cannot find this field anywhere.

I am using NodeJS EB platform.

Or is there any way to run the pnpm start instead of npm start through the .ebextension?

1

There are 1 best solutions below

0
Alexander On

Try adding Procfile in root directory with content:

web: pnpm start

See also official documentation.