thecodecrate / city-state

Simple ruby gem to create form lists with cities and states
MIT License
306 stars 135 forks source link

Unable to update from Rails console, changes lost after closing console #31

Open rebase-master opened 6 years ago

rebase-master commented 6 years ago

Hi,

I had to update the city-state gem to get the latest data. I ran CS.update from Rails console and checked the results. I got updated data but as soon as I close Rails console on Heroku, the changes were lost.

Am I missing a step here? Please provide some assistance ASAP.

Thank you.

joemsak commented 6 years ago

Same problem on heroku here. It will update my local rails server through rails console though.

So far my guess is that it doesn't have write permissions to the csv file, as I believe heroku only allows writing to tmp/, which is ephemeral and wouldn't work for this gem

@steady-daddy here is what I did to fix it for me on heroku due to unwritable directories