Skip to content

Scripts to deploy the database of LCR planning applications to datasette

License

Notifications You must be signed in to change notification settings

Liverpool-UK/lcr-planning-datasette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

lcr-planning-datasette

Scripts to deploy the database of LCR planning applications to datasette. Uses Travis-CI to deploy the latest version to a heroku app

Mostly taken from https://github.com/simonw/fivethirtyeight-datasette.

Setup

  1. Clone the repo
  2. Get your Morph API token from the end of the download link on the specific scraper's page
  3. Encrypt it with travis encrypt --pro MORPH_TOKEN="YOUR-MORPH-TOKEN-HERE"
  4. Replace the env -> global -> secure item at the top of .travis.yml with the output of the encrypt command
  5. Get a Heroku auth token with heroku auth:token
  6. In the settings for your Travis-CI repository, add an environment variable of HEROKU_API_KEY set to the auth token you just got for Heroku
  7. Configure a cron job in Travis-CI to automatically run the build once-a-day (or however often your database should be re-deployed)

About

Scripts to deploy the database of LCR planning applications to datasette

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published