-
Notifications
You must be signed in to change notification settings - Fork 16
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
[WIP] Migrate to v2.3 #2129
[WIP] Migrate to v2.3 #2129
Conversation
Stopped just at https://github.com/camptocamp/c2cgeoportal/blob/2.1/c2cgeoportal/scripts/c2ctool.py#L463 To skip alembic and further. Go directly to GMF 2.3.3
./docker-run --home make upgrade11
The upgrade is nearly done, now you should: - Run `docker-compose up -d`. - Test your application on 'http://localhost:8480/desktop'. To continue, type: ./docker-run --home make upgrade12
Current state: upgrade 11 (test application). To continue, type: ./docker-run --home make --makefile=geoportailv3.mk upgrade12
We should use luxembourg_geoportal_1 instead of geoportailv3_geoportal_1. diff --git a/Makefile b/Makefile
index 5222093..3eecc6a 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ CONFIG_VARS += referrer
CONFIG_VARS += excluded_themes_from_search
APACHE_VHOST ?= luxembourg-geomapfish
-VISIBLE_WEB_HOST ?= localhost
+VISIBLE_WEB_HOST ?= localhost:8042
NGEO_LIBS_JS_FILES += node_modules/fuse.js/src/fuse.min.js
NGEO_LIBS_JS_FILES += node_modules/jszip/dist/jszip.min.js Change also in docker-compose.yml You must also set http in docker-compose.yml |
In admins, delete mobile interface. |
# Conflicts: # geoportailv3/models.py
In c2cgeoportal 2.x the OGC server is a distinct object shared between layers. This commit rewrites the theme on the client to expose a similar API as in 1.x.
…ch-layers Typo
- fix call to attribution function (OL change); - look for attributions in sub layers.
We are using a different branch so I am closing this PR. |
DO NOT MERGE
I do this PR now to share the state of the migration 2.3
How to have current state of the application
DB
upgrade_to_23
db_mapv3_30aout2018.sql
, 2.1 GB, here: http://fileserver.camptocamp.com/1_departments/1_geospatial/1_projects/3_open/luxembourg_geoportailv3/19_external_documents)make
.Luxembourg
upgrade_23_2n
)./docker-run --home make upgrade11
docker-compose up
Manual tasks to do in the db
Run
make fix-db
Then, you can test the application on
http://localhost:8080
.How to continue:
wms layer
tab because some wms have same id that some wmts layers. RunSELECT * FROM geov3.layer_wms wms INNER JOIN geov3.layer_wmts wmts ON wmts.id = wms.id ORDER by wmts.layer;
to see theme. Remove matching wmts layer to see wms layers data.UPDATE geov3.layergroup SET is_internal_wms = False WHERE id=807;
make upgrade-db
should work and launch the 4 commands upper .Post 2.3 task
After that the production use c2cgeoportal 2.3, we have to add an alembic script to remove the column
url
of tablegeov3.lux_layer_internal_wms
(now the url is in an ogc_server). We also have to remove the url in the model definition.