yarn serve in background

Viewed 592

I'm trying to configure gitlab CI/CD for cypress e2e testing on my vue app which uses yarn for package management. cypress documents are all written for npm cypress gitlab ci/cd configuration tutorial

# start the server in the background
- npm run start:ci &
# run Cypress tests
- npx cypress run --browser firefox

is there a way to start server in background for yarn? like running yarn serve but in background.

1 Answers

There is an issue with the command yarn serve&. It will still give you this screen when done compiling: enter image description here

I found a way to work around this through pm2 and this command

pm2 start yarn --interpreter bash --name api -- start
Related