1C: Enterprise infobase web publication tool.
For 1C: Enterprise infobase publication with Apache web server (inspired by TihonV/vrdmaker ). As an alternative to standard webinst utility.
All publication data stored into apache configuration file and vrd files. With this tool you can list, add and remove publications.
Documentation is available at webpub1c.readthedocs.io.
To install using pip, run:
pip install git+https://github.com/b4tman/webpub1c
Or download source code and install using Poetry:
# install poetry
pip install poetry
# install project and deps to virtualenv
poetry install
# run
poetry run webpub1c
The configuration is stored in YAML file webpub1c.yml
located in the current working directory.
apache_config: example/apache.cfg # path to Apache config file
vrd_path: example/vrds # path where to save .vrd files
dir_path: example/pubs # path where to save publication directories
url_base: /1c # prefix for all publications
platform_path: /opt/1cv8/x86_64/current # path to installed 1C:Enterprise platform bin dir
ws_module: wsap24.so # 1c module file name (this one is for Apache 2.4)
vrd_params: # template params for (all) vrd files
debug: # enable debug or not (bool)
server_addr: localhost # server addr
webpub1c
COMMAND
add
- Add new publicationadd_module
Add 1cws module to apache configcheck
Check configget
Get publication infohas_module
Ensure apache config has 1cws modulelist
List publicationsremove
Remove publicationset_url
Set publication url
webpub1c -h
- show helpwebpub1c list
- list publicationswebpub1c add test
- add publication with name 'test' (infobase name)webpub1c add test --url my-infobase
- add publication with name 'test' and url '/1c/my-infobase' ('/1c' is url_base value in config)webpub1c add test --file /path/to/infobase
- add publication with name 'test' for file infobase in '/path/to/infobase' folderwebpub1c set_url test another-infobase
- set url for publication with name 'test', to '/1c/another-infobase'webpub1c get test
- get info about publication with name 'test'webpub1c remove test
- remove publication with name 'test'