Hi, I have just signed up for the web faction account to use it for my ROR applications testing and hosting. I followed all steps mentioned in the documentation: http://docs.webfaction.com/software/rails.html?highlight=rails%20generate# Here is what I did: 1. By default webfaction installed an app "rails" with dir "hello_world" installed having rails 3.2.3 and ruby 1.9.3 installed. 2. Tried loading the app in my domain "talktoari.webfactional.com". I could see the default rails page. 3. Created a new mysql db using web faction control panel 4. Changed my database.yml to reflect those changes in the production section: adapter as mysql2 5. SSH login and ran "rails generate scaffold post title:string body:text". All went fine. 6. Ran "rake db:migrate RAILS_ENV="production" Output: [talktoari@web336 config]$ rake db:migrate RAILS_ENV="production" (in /home/talktoari/webapps/rails/hello_world) == CreatePosts: migrating ==================================================== -- create_table(:posts) -> 0.0251s == CreatePosts: migrated (0.0252s) ===========================================
Please guide me to see my app working fine with production. I am new to web faction and to deployment with mysql asked 19 Apr '12, 04:18 talktoari |
Hi, You should also run:
If the problem is still not resolved after this, please submit a support ticket, so we can take a look at your Rails app and try to determine what's causing the problem. answered 19 Apr '12, 05:51 todork Thanks a lot Todor. This resolves the problem. Sometimes we miss certain silly things. Of course I will need to precompile my assets. Thanks for very quick response. marking this as answer
(19 Apr '12, 06:17)
talktoari
You are most welcome! I'm glad this resolved the problem for you.
(19 Apr '12, 06:18)
todork
|