我的应用程序以前在Heroku服务器上运行得很好。然后,在进行了一定的更新(主要是使用shapely,rtree需求--因此需要libspatial库)之后,它遇到了一个应用程序错误页面。
我不确定我是否在正确的轨道上。但是,我尝试使用以下命令安装一个所谓的Heroku Buildpack:
heroku config:add BUILDPACK_URL=https://github.com/julienfr112
/libspatialindex-buildpack.git该应用程序重新启动,但遇到相同的错误。我怎样才能进一步解决这个问题呢?这似乎是一个问题,在满足Rtree,geopandas等。Libspatialindex是RTree的一个必要条件,所以我只是不确定我是否在Heroku中安装了libspatialindex。
发布于 2017-09-05 08:53:26
(代表“任择议定书”张贴)。
从Heroku仪表板->设置向下滚动到buildpack,我发现它没有从我的终端添加buildpack索引buildpack,尽管有成功的消息。因此,我在这里手动添加了它,使用空提交重新部署,在部署过程中应该可以这样做:
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing requirements with pip
remote:
remote: -----> $ python manage.py collectstatic --noinput
remote: 64 static files copied to '/tmp/build_2fce321c986c6ddada9266ff904ed2b4/static', 73 post-processed.
remote:
remote: -----> libspatialindex app detected
remote: -----> Installing LIBSPATIALINDEX
remote: -----> setting PATHS for LIBSPATIALINDEX
remote: -----> oki
remote: -----> Discovering process types
remote: Procfile declares types -> web我遇到了另一个错误,但我认为这已经超出了这个问题的范围。:)
https://stackoverflow.com/questions/46049442
复制相似问题