XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XO Dev Setup

    Scheduled Pinned Locked Moved Xen Orchestra
    2 Posts 2 Posters 153 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jedimarcusJ Offline
      jedimarcus
      last edited by

      Not the big JS developer here, but I wanted to contribute.

      My dev setup is working as far as I can run yarn start in the packages/xo-server directory.
      This puts Xen Orchestra running and working on port 8088 as I configured.

      Now for developing, I used to do something like "yarn dev" to have the project running in dev mode with hot reload and stuff like that, but running "yarn dev" gives me some output, but I see no server running on 8088 or any other port:

      jedi@thefang:~/git/xen-orchestra/packages/xo-server$ yarn dev
      yarn run v1.22.21
      $ cross-env NODE_ENV=development yarn run _build --watch
      $ index-modules --index-file index.mjs src/api src/xapi/mixins src/xo-mixins && babel --delete-dir-on-start --keep-file-extension --source-maps --out-dir=dist/ src/ --watch
      index generated src/xo-mixins/index.mjs
      index generated src/api/index.mjs
      index generated src/xapi/mixins/index.mjs
      Successfully compiled 148 files with Babel (1035ms).
      The watcher is ready.
      

      Any tips?

      MM

      florentF 1 Reply Last reply Reply Quote 0
      • florentF Offline
        florent Vates 🪐 XO Team @jedimarcus
        last edited by

        @jedimarcus yarn dev start only the watcher(s)
        you can start the server by using cd packages/xo-server and then yarn start

        you can use nodemon instead of node if you want autoreload

        1 Reply Last reply Reply Quote 1
        • First post
          Last post