Browse Source

updated getting started readme

master
Thomas Withiam 2 years ago
parent
commit
d46dc44f7c
  1. 4
      NO ONE READS THE README.md

4
NO ONE READS THE README.md

@ -20,7 +20,7 @@ The nginx config you most likely care about is `/etc/nginx/sites-enabled/default
I've configured nginx to host from `/var/www/html/` by default (since the git repo contains `html/` by default I've cloned it into `/var/www`). So if a web browser requests `http://IP_ADDRESS:PORT/favicon.ioc` nginx will try to load `/var/www/html/favicon.ico`. This directory can be worked on from your host operating system, on my machine `/var/www/html` was accessible from `/var/lib/lxc/wishlist/rootfs/var/www/html`. If you install lxc from snap you will find this in a different directory probably somewhere in `/var/snap`.
If you just want to do web development simply run `java -jar /opt/Wishlist.jar`
If you just want to do web development simply run `cd /opt/; java -jar Wishlist.jar`
## Backend stuff
@ -39,4 +39,4 @@ location /api/ {
> Note: you might have to change `10.0.0.3.1` if you machine was given a different IP address for the virtual LXC network adapter, check with `ip a`
This makes it so nginx in the container proxies back to your host OS and connections to `api/` are forwarded to port `8027` on your own machine, which the java backend handles with the good old sun HttpServer class. The port can be set in the config files mentioned above.
This makes it so nginx in the container proxies back to your host OS and connections to `api/` are forwarded to port `8027` on your own machine, which the java backend handles with the good old sun HttpServer class. The port can be set in the config files mentioned above.
Loading…
Cancel
Save