Christie Koehler
0120ff5612
upgrade: Create prod_settings symlink in step 2 if it doesn't exist.
...
Between releases 1.3.13 and 1.4.0, local_settings.py was renamed to
prod_settings.py. The upgrade scripts were adjusted to reflect this name
change. But because the first part of the upgrade script is run with the
currently installed version's code, the symlink to /etc/zulip/settings.py is
created with the old name. This was causing upgrade-zulip-stage-2 to fail.
Now upgrade-zulip-stage-2 creates the symlink at zproject/prod_settings.py
if it doesn't already exist.
Fixes #1731 .
2016-09-01 21:17:11 -07:00
Taranjeet Singh
d606b95242
zulip_tools.py: Move zulip_tools.py in scripts/lib.
...
This commit moves zulip_tools.py as part of cleaning the root directory
and organizing proejct into better directory structure.
2016-08-15 16:44:50 -07:00
Tim Abbott
4d02c6efef
scripts: Purge old deployments on every upgrade.
...
Fixes : #554 .
2016-08-04 17:02:48 -07:00
Tim Abbott
51f069aa18
scripts: Refactor deployment-finished logging.
2016-08-04 17:02:48 -07:00
Tim Abbott
c4d482e722
upgrade-zulip-stage-2: chdir to deploy_path explicitly.
...
This makes rerunning this manually if it fails much more convenient.
2016-08-02 14:31:07 -07:00
Tim Abbott
fef32af28c
update-deployment: Switch to using update-zulip-part-2.
2016-08-02 14:31:07 -07:00
Tim Abbott
972b42ee7b
upgrade-zulip-stage-2: Only stop services early when needed.
2016-08-02 14:31:07 -07:00
Tim Abbott
5886d3eeec
upgrade-zulip-stage-2: Add --skip-migrations option.
2016-08-02 14:31:07 -07:00
Tim Abbott
759144232f
upgrade-zulip-stage-2: Add --skip-puppet option.
2016-08-02 14:31:07 -07:00
Tim Abbott
8ce55b9789
upgrade-zulip-stage-2: Use argparse for options.
2016-08-02 14:31:07 -07:00
Eklavya Sharma
64affb83f9
Create a virtualenv when installing/upgrading production instances.
2016-06-27 19:55:11 -07:00
Eklavya Sharma
149938d468
Change shebangs from python2.7 to python.
2016-05-29 05:03:08 -07:00
Tim Abbott
ae48f6394b
migrations: Disable prompting about content-type deletion.
...
The main function of prompting inside `manage.py migrate` is to ask
the user if they want to delete stale content-types, which is
unimportant and likely scary, so we disable doing so.
2016-04-13 13:19:02 -07:00
Eklavya Sharma
c59185e119
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import
...
Refer #256
2016-03-10 22:02:17 -08:00
Tim Abbott
52d0423591
Document structure of upgrade-zulip-stage-2 more clearly.
2016-01-11 21:36:41 -08:00
Tim Abbott
e7353902df
upgrade-zulip: Restart process-fts-updates if also a DB host.
...
Previoulsy, process-fts-updates wouldn't be restarted on a server
upgrade in Voyager configurations.
2016-01-09 16:59:43 -08:00
Tim Abbott
75b5a1b8da
upgrade-zulip: Stop zulip-senders too when shutting down services.
2016-01-09 16:59:43 -08:00
Tim Abbott
7395003e6a
Fix buggy #! lines using "/usr/bin/env python2.7 -u".
...
The #! line processing interpreted the argument to pass to `env` as
"python2.7 -u", which obviously isn't a real program.
We fix this by setting the PYTHONUNBUFFERED environment variable
inside the program, which has the same effect.
Thanks to Dan Fedele for the bug report and suggested solution!
2015-11-16 08:46:48 -08:00
Steven Oud
d5435fad1d
Consistently use /usr/bin/env python2.7 in shebangs and commands.
2015-10-21 22:58:21 +00:00
Zev Benjamin
974159ec94
Move apache2 restart for SSO sites to restart-server
...
(imported from commit f999e2b0591a11442c1d3fdba2393ecf6e78bad3)
2013-11-15 11:34:48 -05:00
Tim Abbott
af21f943a2
Fix paths to zulip_tools for relocated scripts.
...
(imported from commit 9a3664c0f7da1ce6dcb554e7e9ddef5bde6cad7e)
2013-11-14 11:16:16 -05:00
Tim Abbott
f9707dd903
Clean up scripts/ by moving helper tools into lib/.
...
(imported from commit 31a99d5cc68524a1399daa50eb1fcda54383a317)
2013-11-14 08:47:11 -05:00