Skip to content

b4tman/webpub1c

Repository files navigation

webpub1c

Documentation Status

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.

Installation

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

Configuration

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

Usage

Synopsis

webpub1c COMMAND

Commands

  • add - Add new publication
  • add_module Add 1cws module to apache config
  • check Check config
  • get Get publication info
  • has_module Ensure apache config has 1cws module
  • list List publications
  • remove Remove publication
  • set_url Set publication url

Examples

  • webpub1c -h - show help
  • webpub1c list - list publications
  • webpub1c 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' folder
  • webpub1c 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'