cd energydata.info
git submodule update --init --recursive
development.ini.sample
to development.ini
vagrant up
vagrant ssh
to ssh into the VM.sudo usermod -aG docker $(whoami) && newgrp docker
(this should be done by build_box.sh, but currently fails)source venv/bin/activate
which will allow you to use the datacats commandcd /vagrant
datacats init
to initialize the environment and choose an admin passwordvagrant up
. If you're adding new templates or new functionality to CKAN, you might need to restart the CKAN server.
vagrant ssh
to ssh into the VMsource venv/bin/activate
which will allow you to use the datacats commandcd /vagrant
(this is the synced folder with the git repo)./reload-server.sh
to reload the serverLess is compiled in the local machine, not vagrant. The resulting styles should be committed to the repo.
The versions mentioned are the ones used during development. It could work with newer ones.
After these basic requirements are met, run the following commands in the website's folder:
npm install
npm run less-watch
Starts the watcher and recompiles when files change.
This assumes a base OS of Ubuntu 16.04
build-box/build_box.sh
, changing vagrant
to this repository's source directorydevelopment.ini.sample
to development.ini
cd wbg-energydata
datacats init
and choose an admin passworddatacats reload
datacats paster -d celeryd
To deploy a new iteration of the data platform to the production environment, follow these steps:
cd wbg-energydata
git checkout master
git pull origin master
datacats install
./reload-server.sh
to restart the servercd wbg-energydata
datacats tweak --add-redis
datacats reload
cd ckanext-harvest
datacats paster harvester initdb
datacats paster -d harvester gather_consumer
datacats paster -d harvester fetch_consumer
cd wbg-energydata/ckanext-harvest
datacats paster harvester source energy-gis-arcgis http://data.energy-gis.opendata.arcgis.com/data.json dcat-json "Energy Sector GIS Working Group" true energy-sector-gis-working-group
datacats paster harvester job-all
to create and run a harvest job