-
Notifications
You must be signed in to change notification settings - Fork 7
Steps to Run and Debug the Starter Locally
Steven Zvonek edited this page Sep 26, 2023
·
3 revisions
- In Starter repo -
start.openliberty.io/server.xmladd in<cors allowedOrigins=“http://localhost:4000,….. - cd
start.openliberty.io> and then run the commandmvn liberty:devwhich will start the starter at https://localhost:9443/api/start/info - Just like in step1 make the same change inside
start.openliberty.io/target/liberty/wlp/usr/servers/defaultServer/server.xmlwhere the server is created - In
openliberty.ioreposrc/main/content/_assets/js/builds.jschange the end of the line that starts with var starter_domain = fromhttps://start.openliberty.iotohttps://localhost:9443 - In openliberty.io repo in
scripts/jekyll_serve_dev.shchange0.0.0.0tolocalhostfor consistency - Now in openliberty.io root, execute
rm -rf _site && ./scripts/jekyll_serve_dev.shwhich runs the website at port4000 - Go to http://localhost:4000/start to see your locally running code
- You can now see your version of the code in the Sources tab, set breakpoints and check variables.
- 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.