I need some help in getting my first Rails application going.
Operating environment background
- Hosting Provider: Bluehost
- ruby, rails, apache: all ok and ready to go. I have written many
ruby programs in this environment which all work.
- Browsers used for testing: Chrome, IE
- MySQL: I have many Databases up and running in this environment
Rails example being used: http://www.webmonkey.com/tutorial/Ruby_on_Rails_for_Beginners
Step1: Created MySQL database and table per the Webmonkey spec - I
actually added 1 extra column to the table.
Create starter framework:
Edit 'config/database.yml' and modified 1st stanza with database just
Generate component components of application:
ruby ./script/generate scaffold Bookmark
OK SO FAR. I really want to use the Apache Web Server (already
installed and available) instead of WEBrick but to keep things simple
I will stick with WEBRICK
Start WEBrick server:
ruby ./script/server # Starts successfully
Try to access using Chrome (which works on all other websites I have
in my account) with
https://www.datajazz.com:3000/bookmarks # Didn't work
https://www.datajazz.com:3000/BDsrc/Bookmarker/bookmarks # Didn't work
I am going to assume the reason for the failure is because WEBrick
must be behind a firewall i.e. Bluehost's.
1. Resolve the above issue
2. Switch from the WEBrick to Apache server