Skip to content

Commit

Permalink
Merge pull request #82 from PAIR-code/LeoLaugier-09-02-2024
Browse files Browse the repository at this point in the history
Doc for deploying on github pages
  • Loading branch information
LeoLaugier authored Feb 9, 2024
2 parents 343c98d + 73ffa37 commit 0fec3cb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions llm-meditators/webapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,25 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u
## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.7; it was then updated to Angular 17.

## Deploy a mock up (no backend service) on github pages
1. clone [this repo](https://github.com/LSIR/recommendation-rudders)

Note: for some reason, assets (images) are not rendered correctly when the app is deployed on GitHub pages. Compared to the PAIR repo, I had to prepend `/recommendation-rudders` to paths pointing to `/assets/*`. For instance: `/assets/avatars/she.png` becomes `/recommendation-rudders/assets/avatars/she.png`.

2. run `git remote add origin https://github.com/LSIR/recommendation-rudders.git`
3. run `git branch -M main`
4. run `git checkout -b gh-pages`
5. run `git push -u origin main`
6. run `cd recommendation-rudders`
7. run `npm install`
8. run `ng build --output-path docs --base-href /recommendation-rudders/`
9. When the build is complete, make a copy of `docs/index.html` and name it `docs/404.html`.
10. Commit and push
11. On the GitHub project page, go to Settings and select the Pages option from the left sidebar to configure the site to [publish from the docs folder and gh-pages branch](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#choosing-a-publishing-source).
12. Click Save
13. Hopefully at this step, the app is live and running as expected at https://[<user_name>].github.io/recommendation-rudders/#/experimenter/

Here is a [quick video tutorial](https://mail.google.com/mail/u/0/#inbox/QgrcJHsTfQgVhDSJBNQBGTzQNLwzGBhqxbv?projector=1) on how to use the app.

More info on the deployment on Github-pages [there](https://angular.io/guide/deployment#deploy-to-github-pages).

0 comments on commit 0fec3cb

Please sign in to comment.