diff --git a/README.md b/README.md index 9ca108a..e15b368 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,12 @@ Until the web interface allow it here are usefull process to: ``` cd .. && . setup.sh smatchit https://testwall-ants.ndda.fr https://gitea.ndda.fr/smatchit/smatchit ``` -Then conf website test domain and use sudo certbot --nginx -d domainename to get ssl +To conf a new website +* Update in adminapi/objects/tribes/itm/tribename.json add domaine name in dns +* Create a folder in tribename/objects/wwws/itm/webname/src and /dist +* from adminapi/apxtri/setup/nginx.wwwscf create file tribename/nginx/website.tribename.townname.nation.name.conf +* add in tribename/objects/wwws/itm/websitename.json the localdb to send to front +* Then conf website test domain and use sudo certbot --nginx -d domainename to get ssl and access in https If you want to contribute fixing bug, add new features in adminapi please push in your branch and send an email to support@need-data.com. diff --git a/apxtri/models/Wwws.js b/apxtri/models/Wwws.js index 5b60705..0dc4083 100644 --- a/apxtri/models/Wwws.js +++ b/apxtri/models/Wwws.js @@ -17,7 +17,7 @@ Wwws.initlocalwco=(tribwco,profils,lg)=>{ Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => { - const fileparam = `../../${tribe}/objects/wwws/itm/${appname}.json`; + const fileparam = `../../../${tribe}/objects/wwws/itm/${appname}.json`; console.log(fileparam); if (!fs.existsSync(fileparam)) { return { status: 404, ref: "Wwws", msg: "appdoesnotexist", data: {} };