mysociety / ainow

Website for the AI Now Symposium
Other
2 stars 1 forks source link

Updates to development environment #141

Closed sagepe closed 5 years ago

sagepe commented 5 years ago

This includes a couple of tweaks to @ajparsons recent additions and a new trigger in the Vagrantfile to attempt to download test data on a vagrant up. This relies on SSH access to git.mysociety org, as well as the local copy of Vagrant being >= 2.1.0.

It would also be possible to include a trigger on destroy to ensure that the test data is removed. This would help ensure it was always up-to-date and copies weren't left lying around, although this might prove to be a problem if someone needs to work offline. I'd be interested in views on whether this is a good idea.

This fixes #139.

wrightmartin commented 5 years ago

It would also be possible to include a trigger on destroy to ensure that the test data is removed. This would help ensure it was always up-to-date and copies weren't left lying around, although this might prove to be a problem if someone needs to work offline. I'd be interested in views on whether this is a good idea.

I do work offline occasionally, probably not often enough to worry though - but having up to date data is always a good thing, if it's reliable I'd be for it

chrismytton commented 5 years ago

Just to note that my username on my laptop is different to the one on the servers. I had to add the following to ~/.ssh/config on my laptop to get things working.

Host git.mysociety.org
  User chrism
chrismytton commented 5 years ago

It would also be possible to include a trigger on destroy to ensure that the test data is removed. This would help ensure it was always up-to-date and copies weren't left lying around, although this might prove to be a problem if someone needs to work offline. I'd be interested in views on whether this is a good idea.

I've just pushed an extra commit which adds a ./script/mirror-live-database command that can be run from your local machine to get the latest version of the live data. So I think we can just run that and not worry about stale data for now.

chrismytton commented 5 years ago

@wrightmartin Now this has been merged you should be able to pull down the latest version of the tictec branch and run ./script/mirror-live-database to get an exact copy of the live database loaded locally. Let me know if you bump into any issues!