thecodecrate / city-state

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

Permission errors on deploy #48

Open brendon opened 3 years ago

brendon commented 3 years ago

This gem seems to want to write files to its own gem directory. Is this normal? In production I get the following error and the Rails application won't boot:

Could not spawn process for application /var/www/spikeatschool/current: The application encountered the following error: Permission denied @ rb_sysopen - /var/www/xxxxxxxxxxxx/shared/bundle/ruby/2.6.0/gems/city-state-0.1.0/lib/db/states.nz (Errno::EACCES)

Is there a way to not have city-state write these files? Perhaps just load them into memory instead?