- Published Date:Jun. 6, 2016
Environment
- rails 4.2.4, rails 4.2.5 → rails5.0.0 beta1
- ruby 2.2.3
- rbenv rbenv 0.4.0-183-gc18a3f9
Article Summary
Rails 5.0.0 Beta1 Released. I think Rails 5 will probably be released in spring of 2015.
But, if you change from rails 4 to rails 5 in Gemfile, your app would not operate correctly.
Currently, I'm doing much trial and error. At same time, I understood a lot of things. so, I write what I understood.
This article is a continuation from previous article.
read in Japanese
config.logger is unsupported
I took a lot of time this error. Rails 4.2.x implements log rotation from this setting. But this setting is fatal error on Rails 5.0.0 beta1.
So, you must change the following description.
Before
config.logger = Logger.new('log/development.log', 'daily')
After
# remove # config.logger = Logger.new('log/development.log', 'daily')
you must implement log rotation by another way.
cannot load such file -- sass
This error shows sass file was fail to read. So, remove sass file. Your app is launched normally.
This error shows that your app was fail to read sass file. You should remove sass file. if you do, your app will be launched successfully.
bin/setup
Compared with rails 4, this file was changed many settings.
For instance, rake commands were changed to rails commands.
you should use termial commnad.
rake rails:update
this command can overwrite bin/setup file. before execute, I recommend that git branch switch to new git branch.
Other
These files had better change to file of rails5.
you create sample rails 5 project, and your app should compared with sample rails 5 by diff.
// change config/environments/development.rb // new file active_record_belongs_to_required_by_default.rb
Summary
Applied the contents of previous article and this article, I modified rails code. My app was be able to launch rails 5 successfully.
I plan to release my app on production mode in a few weeks.
See you.
0 件のコメント:
コメントを投稿