Commit cf52ed02 authored by sim's avatar sim

[DOC] Make target must be explicit

parent 48f1ac9b
......@@ -10,7 +10,7 @@ To setup development environment, run django test server and postgrest:
git clone -b gargantext-light ssh://git@gitlab.iscpif.fr:20022/humanities/gargantext.git gargantext-light
cd gargantext-light
make
make setup
pipenv run make start
By default Django test server is running at <http://localhost:8000>, and
......@@ -68,18 +68,18 @@ for installation instructions.
To bootstrap Gargantext environment just cd into your local Gargantext repo and
do:
make
make setup
Or for production (without dev dependencies and without `DEBUG` mode):
make ENVIR=prod
make ENVIR=prod setup
If you want to specify custom paths for configuration files (by default
`gargantext.ini` and `postgrest.conf` in current directory), use `GARGANTEXT_CONF`
and `POSTGREST_CONF` environment variable. For example:
GARGANTEXT_CONF=/etc/gargantext/gargantext.ini \
POSTGREST_CONF=/etc/gargantext/postgrest.conf make ENVIR=prod
POSTGREST_CONF=/etc/gargantext/postgrest.conf make ENVIR=prod setup
If everything is going well, you now have a clean virtualenv with every
packages you need to run Gargantext, and fresh configuration files.
......@@ -101,8 +101,8 @@ Configuration is located in three files: `.env` (environment variables),
`gargantext.ini` and `postgrest.conf` (these file names are default values,
they can be specified in `GARGANTEXT_CONF` and `POSTGREST_CONF` env variables).
These files are automatically generated by running `make` (or
`make ENVIR=prod`), which takes care of the tedious work.
These files are automatically generated by running `make setup` (or
`make ENVIR=prod setup`), which takes care of the tedious work.
To generate configuration again, one can run `./tools/mkconf.sh -f <target>`
where `<target>` can be `dev` or `prod`. Be careful, this script will change
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment