GIS and Media fusion

"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild

User Tools

Site Tools


geoinf18:pgheroku

This is an old revision of the document!


PostGIS avec le service de cloud PaaS Heroku

Objectif : déployer une app Heroku avec PHP et PostgreSQL avec l'extension PostGIS

Démarche :

  1. Suivre les 4 premières étapes de Getting Started on Heroku with PHP https://devcenter.heroku.com/articles/getting-started-with-php#introduction (Introduction, Set up, Prepare the app, Deploy the app)
    1. suivre aussi l'étape Push local changes, mais à la place de l'utilisation de Cowsay, on propose plutôt de simplement ajouter un script PHP qui exécute la fonction phpinfo() — l'appel de ce script dans un navigateur vous permettra de savoir plus sur la configuration PHP avec Heroku
    2. l'étape Provision a database est remplacée par l'exécution de la commande (attache et initialise une base de données Postgresql à l'application PHP)
      heroku addons:create heroku-postgresql
geoinf18/pgheroku.1540915398.txt.gz · Last modified: 2018/10/30 17:03 by oertz