scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.28k stars 1.41k forks source link

Docker failing to run #722

Closed aleixsb closed 7 years ago

aleixsb commented 7 years ago

docker run -i -t --rm -v $(pwd)/data:/app/slyd/data:rw -p 9001:9001 --name portia portia

System check identified no issues (0 silenced).

You have 12 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): auth, contenttypes, db_repo, sessions. Run 'python manage.py migrate' to apply them.

February 24, 2017 - 10:59:47 Django version 1.10.1, using settings 'portia_server.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.

ruairif commented 7 years ago

You're missing the assets directory::

docker run -i -t --rm -p 9001:9001 --name portia \
    -v $(pwd)/data:/app/slyd/data:rw \
    -v ~/portia/portia/portiaui/dist:/app/portiaui/dist \
    portia
aleixsb commented 7 years ago

ok thanks! Now it's starting but i'm getting 404 Not Found for http://localhost:9001/static/index.html

portiaui folder doesn't contain any dist folder so when I create the volume portiaui/dist:/app/portiaui/dist in docker it's empty and I suppose this is why I'm getting this error, is you path correct?

Also in the official documentation the docker command it's: docker run -i -t --rm -v /data:/app/slyd/data:rw -p 9001:9001 --name portia portia

That's why I wasn't mounting this volume, does it need an update?

Thanks for your help!

ruairif commented 7 years ago

The documentation is outdated. The most up to date instructions are here

aleixsb commented 7 years ago

thanks!