Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#519] Update deployment docs for CKAN 2.0
This is a fairly big rewrite of the deployment docs that also necessitates changes to other docs (like the source install docs, etc.) The idea is to document the deployment process that OKFN is currently using on its servers, so that the deployment docs can become the docs for the OKFN dev team and we can dogfood our own docs, instead of having a bunch of wiki pages, READMEs, etc. that we follow and ignoring the "official" deployment docs. Secondly, this aims to merge source install and deployment into one process. Deploying CKAN is just doing a source install, and then doing a couple of extra things to create the WSGI and Apache config files. But because the source install docs used `~/pyenv` and the deployment docs used `/usr/local/demo.ckan.net`, it was much harder to do a deployment than it should be. You would first have to follow the source install docs but replace `~/pyenv` with `/usr/local/demo.ckan.net` everywhere and deal with all the consequences. Then you would follow the deployment docs. So both the Source Install and Deployment docs now describe the layout we use on our servers, where there's space for multiple CKAN sites on the same server, with virtualenvs in `/lib/ckan/` and config files in `/etc/ckan/`. Since the multi-site layout requires a site name (for the name of the site's virtualenv, etc.) I've invented a fictional CKAN site called `masaq` as an example. - Update the deployment docs to use a virtualenv at `/lib/ckan/masaq`, config files at `/etc/ckan/masaq`, etc. - The deployment docs now use the WSGI and Apache config files that we're actually using on our servers, not the old versions that were in the docs - Deleted stuff about enabling CORS from deployment, apparently this is builtin since CKAN 1.5. - Update the install-from-source docs to use a virtualenv at `/lib/ckan/masaq` and config files at `/etc/ckan/masaq`, etc. The install-from-source and deployment now use the same ``masaq`` example with the same directory layout, database names, etc. So it's possible to step through the source install and the deployment docs exactly as written (copy-pasting everything without modification) and end up with a working deployed site. - Also added info to the install-from-source docs about how the filesystem layout etc is done and why - Update the DataStore Setup docs to use the `masaq` database user, and to call the datastore database `masaq-datastore`. - Update the solr-setup docs, this is just tweaking some formatting issues and updating some commands to follow the `masaq` example. - Update the post-install docs to fit with the `masaq` example as well - Update the testing docs to fit with the `masaq` example - Update `test-core.ini` to use the `masaq` postgres user name - Disable the log file in `deployment.ini_tmpl`, as we do on our servers, and rely only on the Apache logs
- Loading branch information
Sean Hammond
committed
Apr 24, 2013
1 parent
425133e
commit 808391f
Showing
8 changed files
with
311 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.