diff --git a/Dockerfile b/Dockerfile index 140bc618e8..53a250a77c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,26 @@ FROM python:3.6-jessie # Install dependencies for shapely -RUN apt-get update -RUN apt-get upgrade -y -RUN apt-get install -y libgeos-dev +RUN apt-get update \ + && apt-get upgrade -y \ + && apt-get install -y libgeos-dev \ + && rm -rf /var/lib/apt/lists/* + # Uncomment and set with valid connection string for use locally #ENV TM_DB=postgresql://user:pass@host/db +WORKDIR /src + # Add and install Python modules -ADD requirements.txt /src/requirements.txt -RUN cd /src; pip install -r requirements.txt +ADD requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt -ADD . /src +ADD . . # Expose EXPOSE 8000 # Gunicorn configured for single-core machine, if more cores available increase workers using formula ((cores x 2) + 1)) -CMD cd /src; NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn -b 0.0.0.0:8000 -w 5 --timeout 179 manage:application +CMD NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn -b 0.0.0.0:8000 -w 5 --timeout 179 manage:application + diff --git a/README.md b/README.md index 35643fcbfb..e57814fa3b 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ python -m unittest discover tests/server On boot the Tasking Manager App will look for the following environment vars: -* **TASKING_MANAGER_ENV** - Allows you to specify which config to load from ./server/config.py Acceptable values: +* **TM_ENV** - Allows you to specify which config to load from ./server/config.py Acceptable values: * **Dev** - This is the default * **Staging** - Use this for your staging/test environment * **Prod** - Use this for your production environment diff --git a/client/app/admin/edit-project/edit-project.html b/client/app/admin/edit-project/edit-project.html index a2640d7bf3..d4bf836bd1 100644 --- a/client/app/admin/edit-project/edit-project.html +++ b/client/app/admin/edit-project/edit-project.html @@ -243,9 +243,14 @@

{{ 'In this area' | translate }}

ng-model="info.perTaskInstructions" rows="4">

{{ 'Tip' | translate }}: {{ 'You can use Markdown. (HTML is not allowed)' | translate }}

-

Put here anything that can be useful to users while taking a task. {x}, {y} and {z} will be replaced by the corresponding parameters for each task. +

+ Put here anything that can be useful to users while taking a task. {x}, {y} and {z} will be replaced by the corresponding parameters for each task. {x}, {y} and {z} parameters can only be be used on tasks generated in the Tasking Manager and not on imported tasks. For example: « This task involves loading extra data. Click [here](http://localhost:8111/import?new_layer=true&url=http://www.domain.com/data/{x}/{y}/{z}/routes_2009.osm) to load the data into JOSM ».

+

+ Put here anything that can be useful to users while taking a task. If you have added extra properties within the GeoJSON of the task, they can be referenced by surrounding them in curly braces. For eg. if you have a property called "import_url" in your GeoJSON, you can reference it like: + This task involves loading extra data. Click [here](http://localhost:8111/import?new_layer=true&url={import_url}) to load the data into JOSM +