Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue launching OpenRepairPlatform localy on PC #160

Open
Skrattoune opened this issue Mar 9, 2022 · 1 comment
Open

Issue launching OpenRepairPlatform localy on PC #160

Skrattoune opened this issue Mar 9, 2022 · 1 comment

Comments

@Skrattoune
Copy link

Salut,

Lorsqu'on avait discuté au téléphone en décembre, vous m'aviez dit que pour tester des modifications du code, je pouvais lancer l'appli localement avec un classique

py manage.py makemigrations
py manage.py migrate
py manage.py runserver

or j'ai un problème de compilation lors du makemigrations:
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal302", "gdal301", "gdal300", "gdal204", "gdal203", "gdal202", "gdal201", "gdal20"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

sur internet, il est suggéré d'installer GAL:
pip install GDAL
qui n'est pas dans les requirements

ou bien encore:
https://stackoverflow.com/a/49159195/12505071

What would be your recommended way to solve this ?

@ClemsP
Copy link
Collaborator

ClemsP commented Mar 11, 2022

Salut,

J'ai pas mi la doc à jour. Mais la branch dev_branch utilise POSTGIS.

Il faut s'inspirer du DockerFile : Dockerfile et installer gdal-bin .

Gdal s'installe via apt , pas avec pip.

Il faut également installer et lancer nodejs.
apt-get install -y nodejs && cd openrepairplatform/static/ && npm i && node build.prod.js && cd -

Sinon le plus simple c'est de lancer en local avec Docker.

Donc simplement :
cd deployment && docker-compose -f docker-compose-no-certificat.yml up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants