zulip/tools/setup
Steve Howell aff58ed9d9 db tools: Simplify args for postgres-init-dev-db.
We now just have two modes for setting up a dev/test
database.  This makes it easy to see these things
side-by-side, when you're trying to understand how
the two different databases get built:

    # dev:
        USERNAME=zulip
        DBNAME=zulip
        STATUS_FILE_NAME=migration_status_dev

    # test:
        USERNAME=zulip_test
        DBNAME=zulip_test
        STATUS_FILE_NAME=migration_status_test

And then we make it more explicit the things that
are common between dev and test (which are
important things to understand when troubleshooting
provision-related glitches):

    SEARCH_PATH=zulip,public
    PASSWORD=$("$(dirname "$0")/../../scripts/get-django-setting" LOCAL_DATABASE_PASSWORD)
    DBNAME_BASE=${DBNAME}_base

We lose some "generality" here, but passing in arbitrary
combinations of username/dbname/status_file to the script
would cause chaos for our digest checks, and all the different
template/base databases could cause confusion too.
2020-04-29 12:30:49 -07:00
..
dev-vagrant-docker dev-vagrant-docker: Upgrade docker-systemctl-replacement. 2019-06-24 22:06:32 -07:00
emoji travis: Remove Travis unwanted code. 2020-04-28 11:11:23 -07:00
__init__.py
build_pygments_data pygments_data: Replace JS module with JSON module. 2020-02-12 10:09:12 -08:00
dev-motd Vagrantfile: Be nicer to /etc/update-motd.d. 2019-05-24 17:33:06 -07:00
generate-fixtures db tools: Refactor generate-fixtures/rebuild-test-database. 2020-04-22 09:24:42 -07:00
generate-test-credentials generate-test-credentials: Fix shellcheck warnings. 2018-08-03 09:15:27 -07:00
generate_integration_bots_avatars.py tools: Verify that all integrations have bot avatars. 2020-04-22 17:45:30 -07:00
generate_zulip_bots_static_files.py tools: Extract png generation code to separate module. 2020-04-22 17:45:30 -07:00
install-aws-server install-aws-server: Use our settings.py if available. 2019-06-13 14:39:25 -07:00
install-sgrep install-{sgrep,shellcheck}: Check that we detect the version correctly. 2020-04-22 15:05:17 -07:00
install-shellcheck install-{sgrep,shellcheck}: Check that we detect the version correctly. 2020-04-22 15:05:17 -07:00
lang.json markdown: Keep only 'text' for a no-op pygments rendering. 2020-04-27 10:40:29 -07:00
optimize-svg Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
postgres-init-dev-db db tools: Simplify args for postgres-init-dev-db. 2020-04-29 12:30:49 -07:00
postgres-init-test-db db tools: Simplify args for postgres-init-dev-db. 2020-04-29 12:30:49 -07:00
setup_venvs.py setup_venv: Replace virtualenv_args list with python2 bool. 2020-02-05 12:38:10 -08:00