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

    XO Dev Setup

    Scheduled Pinned Locked Moved Xen Orchestra
    2 Posts 2 Posters 455 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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post