mammad
mammad

Reputation: 207

yarn serve in background

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.

Upvotes: 5

Views: 3846

Answers (1)

Mike D.
Mike D.

Reputation: 164

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

Upvotes: 2

Related Questions