Skip to content

Steps to Run and Debug the Starter Locally

Steven Zvonek edited this page Sep 26, 2023 · 3 revisions
  1. In Starter repo - start.openliberty.io/server.xml add in <cors allowedOrigins=“http://localhost:4000,…..
  2. cd start.openliberty.io> and then run the command mvn liberty:dev which will start the starter at https://localhost:9443/api/start/info
  3. Just like in step1 make the same change inside start.openliberty.io/target/liberty/wlp/usr/servers/defaultServer/server.xml where the server is created
  4. In openliberty.io repo src/main/content/_assets/js/builds.js change the end of the line that starts with var starter_domain = from https://start.openliberty.io to https://localhost:9443
  5. In openliberty.io repo in scripts/jekyll_serve_dev.sh change 0.0.0.0 to localhost for consistency
  6. Now in openliberty.io root, execute rm -rf _site && ./scripts/jekyll_serve_dev.sh which runs the website at port 4000
  7. Go to http://localhost:4000/start to see your locally running code
  8. You can now see your version of the code in the Sources tab, set breakpoints and check variables.
  9. If you get a CORS error in the browser console, keep refreshing and it should eventually work. This is unknown why this happens at this time, if you know why it is occurring please contact https://ibm-cloud.slack.com/archives/G014CF6C59N.
Clone this wiki locally