d4rkstar opened a new issue, #164:
URL: https://github.com/apache/openserverless/issues/164

   - [X] I have searched the 
[issues](https://github.com/apache/openserverless/issues) of this repository 
and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   `ops ide devel` is not executing subprocess specified in package.json:
   
   ```
   "openserverless": {
       "devel": "npm run dev",
       "deploy": "npm run build"
     }
   ```
   
   ### Ⅱ. Describe what happened
   
   `ops ide deploy` is not able to run `npm run build` when using vite for a 
frontend build (ex. react app). So the web directory is empty:
   
   ```
    Deploy Child process: npm run build has PID: 5372
   UPLOAD ASSETS FROM web
   ERROR: /workspaces/email-browser/web is not a directory
   URL: https://devel.nuvolaris.org
   ```
   
   ### Ⅲ. Describe what you expected to happen
   npm run dev executed and web folder is generated
   
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. create a react app
   2. configure vite output dir to `web`
   3. run ops ide deploy
   
   
   ### Ⅴ. Anything else we need to know?
   n.d.
   
   ### Ⅵ. Environment:
   
   @d4rkstar ➜ /workspaces/email-browser (main) $ ops -version
   0.1.0-2409121919.dev
   
   @d4rkstar ➜ /workspaces/email-browser (main) $ ops -info
   OPS & OPS_CMD: /home/codespace/.local/bin/ops
   OPS_VERSION: 0.1.0-2409121919.dev
   OPS_BRANCH: 0.1.0
   OPS_BIN: /home/codespace/.ops/linux-amd64/bin
   OPS_TMP: /home/codespace/.ops/tmp
   OPS_HOME: /home/codespace/.ops
   OPS_ROOT: /home/codespace/.ops/0.1.0/olaris
   OPS_REPO: http://github.com/apache/openserverless-task
   OPS_PWD: /workspaces/email-browser
   OPS_OLARIS: f5619fd62c64b15c5cc81bc8b93bcfff6047bcc9
   OPS_ROOT_PLUGIN: /workspaces/email-browser


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@openserverless.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to