Open garethrees opened 9 years ago
I think this is caused because the alaveteli user on EC2 doesn't have superuser permissions on the database, I don't think it's anything to do with load-sample-data already having been run. Renaming accordingly.
Just a couple of thoughts off the top of my head…
.sample-data-loaded
file to signify that the data has been loaded. Shouldn't need that if the script is idempotent.
Running
script/load-sample-data
after it has already been run causes the task to exit with a horrible error. Its not immediately obvious that it's caused by the data already existing.The simplest thing that comes to mind is a check along the lines of: