Skip to content

Commit

Permalink
[#4020] Move the who.ini step to be before the "paster db init" step.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Feb 15, 2018
1 parent 555efa5 commit 20a24c2
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions doc/maintaining/installing/install-from-source.rst
Expand Up @@ -106,13 +106,13 @@ b. Install the recommended ``setuptools`` version:
c. Install the CKAN source code into your virtualenv.
.. important::

For the following commands, make sure you are in your CKAN default directory. E.g.

.. parsed-literal::
cd /usr/lib/ckan/default/
To install the latest stable release of CKAN (CKAN |latest_release_version|),
run:

Expand All @@ -129,14 +129,14 @@ c. Install the CKAN source code into your virtualenv.
pip install -e 'git+\ |git_url|\#egg=ckan'
.. tip::

If you would like to work submit a pull request with your changes, be sure you are working from a cloned repository.
Use your personal repository URL instead of the CKAN repository. E.g.

.. parsed-literal::
pip install -e 'git=https://github.com/{your-username}/ckan.git#egg=ckan'
.. warning::

The development version may contain bugs and should not be used for
Expand Down Expand Up @@ -235,8 +235,19 @@ site_url

.. _postgres-init:

----------------------
6. Link to ``who.ini``
----------------------

``who.ini`` (the Repoze.who configuration file) needs to be accessible in the
same directory as your CKAN config file, so create a symlink to it:

.. parsed-literal::
ln -s |virtualenv|/src/ckan/who.ini |config_dir|/who.ini
-------------------------
6. Create database tables
7. Create database tables
-------------------------

Now that you have a configuration file that has the correct settings for your
Expand All @@ -256,7 +267,7 @@ You should see ``Initialising DB: SUCCESS``.
See `4. Create a CKAN config file`_.

-----------------------
7. Set up the DataStore
8. Set up the DataStore
-----------------------

.. note ::
Expand All @@ -268,17 +279,6 @@ Follow the instructions in :doc:`/maintaining/datastore` to create the required
databases and users, set the right permissions and set the appropriate values
in your CKAN config file.

----------------------
8. Link to ``who.ini``
----------------------

``who.ini`` (the Repoze.who configuration file) needs to be accessible in the
same directory as your CKAN config file, so create a symlink to it:

.. parsed-literal::
ln -s |virtualenv|/src/ckan/who.ini |config_dir|/who.ini
---------------
9. You're done!
---------------
Expand Down Expand Up @@ -380,4 +380,3 @@ This is seen occasionally with Jetty and Ubuntu 14.04. It requires a solr-jetty
wget https://launchpad.net/~vshn/+archive/ubuntu/solr/+files/solr-jetty-jsp-fix_1.0.2_all.deb
sudo dpkg -i solr-jetty-jsp-fix_1.0.2_all.deb
sudo service jetty restart

0 comments on commit 20a24c2

Please sign in to comment.