Skip to content

Commit

Permalink
restructure repo: server is now separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasibalic committed Jan 19, 2025
1 parent 1a49056 commit 4769661
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Dockerfile_proxy
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
FROM nginx
COPY caroline/html_dist /usr/share/nginx/html/caroline/
COPY caroline/html_dist/index.html /usr/share/nginx/html/.
COPY caroline/html/caroline/ /usr/share/nginx/html/caroline/
COPY roundtable.conf /etc/nginx/conf.d/default.conf
2 changes: 1 addition & 1 deletion build_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ echo "Build proxy image"
podman build -f Dockerfile_proxy -t roundtable_proxy

echo "Build application server"
podman build -f caroline/server/Dockerfile -t roundtable_application
podman build -f server/Dockerfile -t roundtable_application
2 changes: 1 addition & 1 deletion caroline/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h2 id="confirmmessage"></h2>
import { initRoundTable, initApp, enabaleProceed, disableProceed } from './js/caroline.js';
import YAML from 'yaml';

var initDataLocation = './init_data.yaml';
var initDataLocation = './caroline/init_data.yaml';
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
if (urlParams.has('load')){
Expand Down
1 change: 1 addition & 0 deletions caroline/html/init_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ leftHanded: false
drawingHelp: dots
drawingHelpIntensity: 0.06
roundTableCallBack:
#roundTableServer: http://localhost:8001
roundTableServer: https://roundtable.researchx3d.com/
roundTableAuth: ''
roundTableExit:
Expand Down
3 changes: 2 additions & 1 deletion caroline/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "parcel build --no-scope-hoist --public-url ../caroline --dist-dir ./caroline/"
},
"staticFiles": {
"staticPath": "./init_data.yaml"
"staticPath": "./init_data.yaml",
"outputDir": "/caroline"
},
"devDependencies": {
"@parcel/compressor-brotli": "^2.13.3",
Expand Down
4 changes: 2 additions & 2 deletions roundtable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ server {
gzip_vary on;
gzip_min_length 10240;
gzip_types text/css text/javascript application/x-javascript;

gzip_static on;

location / {
index index.html;
index caroline/index.html;
gzip on;
gzip_types application/json;
gzip_static on;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4769661

Please sign in to comment.