Skip to content

Refactoring to fit shh-dlce deployment scheme#1

Open
xrotwang wants to merge 61 commits intolingdb:masterfrom
shh-dlce:master
Open

Refactoring to fit shh-dlce deployment scheme#1
xrotwang wants to merge 61 commits intolingdb:masterfrom
shh-dlce:master

Conversation

@xrotwang
Copy link
Collaborator

@xrotwang xrotwang commented Jul 2, 2018

  • Removed submodules: Logo and favicon from lingdb/cognac-logo have been
    added to cobl/static/logo.
  • Turned into python package:
    • Added setup.py
    • REQUIREMENTS replaced by install_requires in setup.py
  • Renamed package from ielex to cobl
  • Renamed static URL from /ielex/static to /static
  • Allow running the app with gunicorn --paste ...:
    • added entry point in setup.py
    • added cobl:main, reading config passed in via paste config file
    • The paste config file now supersedes local_settings.py.
  • To make sure SQL dumps can be restored to a DB cluster with different
    user and ACL setups, the dumps are now created using pg_dump's
    --no-owner and --no-acl options.
  • To make the SQL dumps compatible with our deployment infrastructure,
    they are now compressed using gzip rather than bzip2.

The app now has to be installed running

pip install -e .

and can then be started with a development.ini looking like

[app:main]
use = egg:cobl
sqlalchemy.url = postgresql://postgres@/cobl
debug = True
secret_key = abcd

[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = 6543

running

gunicorn --paste development.ini

xrotwang added 2 commits July 2, 2018 15:45
To make sure SQL dumps can be restored to a DB cluster with different
user and ACL setups, the dumps are now created using `pg_dump`'s
`--no-owner` and `--no-acl` options.

To make the SQL dumps compatible with our deployment infrastructure,
they are now compressed using `gzip` rather than `bzip2`.
- Removed submodules: Logo and favicon from lingdb/cognac-logo have been
  added to `cobl/static/logo`.
- Turned into python package:
  - Added `setup.py`
  - REQUIREMENTS replaced by `install_requires` in setup.py
- Renamed package from ielex to cobl
- Allow running the app with `gunicorn --paste ...`:
  - added entry point in `setup.py`
  - added `cobl:main`, reading config passed in via paste config file
  - The paste config file now supersedes `local_settings.py`.
@xrotwang xrotwang changed the title Streamline dumps Refactoring to fit shh-dlce deployment scheme Jul 3, 2018
@xrotwang xrotwang requested a review from Bibiko July 3, 2018 14:01
xrotwang and others added 26 commits July 3, 2018 17:08
…session data, instead inform the user and use defaults
Hans-Jörg Bibiko and others added 30 commits May 29, 2019 08:12
updated bower, grunt; removed obsolet package grunt-asset-version-json; fixed old dev.reader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants