Lua script needs to be adapted if running in virtual directory in Docker
Issue #923
resolved
If running Openrem in Virtual directory, using the Docker setup, one needs to fill the virtual directory in the HttpPost of the Lua script:
HttpPost('http://nginx/import/from_docker/', post_data, headers)
Should become
HttpPost('http://nginx/' .. dms .. 'import/from_docker/', post_data, headers) (where dms is the variable holding the virtual directory).
Comments (3)
-
reporter -
Minor tweaks for virtual directory docs. Refs
#923[skip ci] docs only→ <<cset 3719b2a6af5d>>
-
- changed status to resolved
Merged in issue923virtualdir (pull request #528)
Minor tweaks for virtual directory docs. Fixes
#923https://bitbucket.org/openrem/docker/pull-requests/9 also approved by @LuukO and merged.
→ <<cset 84784e5fda4d>>
- Log in to comment
dms should be empty or ending with a /
so
dms = ''
or
dms = ‘virdir/’