I am trying to run ionic serve in the background so I can test it via my rails app on circle ci. I thought I could do it with:
nohup bash -c "ionic serve --nolivereload --nobrowser &"
But unfortunately it doesn't work. Does anyone know how to run it in the background?
On CircleCI I have found this setup to work well
Why do you want it to run in background on CI ?
It should be ok to run the command directly before your test:
Your CI should kill all the triggered process once its done...
Update:
If your CI does not kill the triggered process, you could do something like this:
It should work on CI if all of these commands are in the same job.
Here's a method that actually works (sorry so late)
I think there's an easy way in ionic v3, but this works for v1
You could use
screen
: