How to run ionic in the background

后端 未结 4 364
执笔经年
执笔经年 2021-01-21 05:06

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 --noli         


        
4条回答
  •  梦毁少年i
    2021-01-21 05:29

    On CircleCI I have found this setup to work well

    machine:
      node:
        version: v7.4.0
    
    test:
      pre:
        - npm run webdriver-update
        - ionic serve --nolivereload --nobrowser --port 8101:
            background: true
        - sleep 15
    
      override:
        - npm run e2e
    

提交回复
热议问题