-
Notifications
You must be signed in to change notification settings - Fork 5
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.xml
add in<cors allowedOrigins=“http://localhost:4000,….
. - cd
start.openliberty.io
> and then run the commandmvn liberty:dev
which 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.xml
where the server is created - In
openliberty.io
reposrc/main/content/_assets/js/builds.js
change the end of the line that starts with var starter_domain = fromhttps://start.openliberty.io
tohttps://localhost:9443
- In openliberty.io repo in
scripts/jekyll_serve_dev.sh
change0.0.0.0
tolocalhost
for consistency - Now in openliberty.io root, execute
rm -rf _site && ./scripts/jekyll_serve_dev.sh
which 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.