vhochstein / active_scaffold

Rails 4 Version of activescaffold supporting jquery
MIT License
156 stars 34 forks source link

Heroku deployment for staging environment #133

Closed sandipransing closed 13 years ago

sandipransing commented 13 years ago

As i am deploying on heroku staging environment. It gaves me file permission error. I think instead raising exception it would be good to log exception.

vhochstein commented 13 years ago

Well, if you raise an exception everybody immediatly notice that something is wrong. and in your case I suggest to disable asset copying for heroku environment.

RobertLowe commented 13 years ago

Prolly needs this:

config/initializers/active_scaffold.rb: ACTIVE_SCAFFOLD_INSTALL_ASSETS = false

sandipransing commented 13 years ago

looks perfect. @vhochstein your views ?

vhochstein commented 13 years ago

Yes Robert is right. His statement shows you how to disable asset copying if you are using activescafffold as a gem. If you are using it as a plugin you have to add that code line somewhere else eg active_scaffold_env.rb