Ruby on Rails Monday, February 27, 2012

Peter Vandenabeele wrote in post #1049083:
> On Mon, Feb 27, 2012 at 6:25 PM, Paul Na <lists@ruby-forum.com> wrote:
>
>> Hi Peter,
>>
>> Its going to be both but once it's working when i have made the app in
>> will go from development to production.
>>
>
> I would not advise to do the learning phase in development mode on a VPS
> if it is exposed to the Internet. Also, setting up all aspects of the
> VPS
> (including security) yourself, while learning Rails is not trivial.
> Maybe
> you are
> better helped by a hosting company with good service or running
> production
> on PaaS providers (like Heroku, Engine Yard, etc.).
>
>
> the output of db:create is :
>> `<top (required)>'
>>
>> `each'
>> /usr/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:423:in
>> /usr/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
>> uninitialized constant Rake::DSL
>> `<top (required)>'
>>
>
/usr/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/test_unit/railtie.rb:12:in
>> `block in load_tasks'
>> `load_tasks'
>> /usr/bin/rake:31:in `<main>'
>> #
>> timeout: 5000
>> password:
>> pool: 5
>> timeout: 5000
>>
>
> Are these number of spaces exact? The .yml format
> needs an exact number of 2 spaces (no tabs) before
> the keys like 'host', 'adapter' etc. It looks like the
> number of space before the keys is not exactly 2 ?
>
> HTH,
>
> Peter

Hi Peter,

No the development won't to viewable to general users, but i completely
understand your point. I do know my way around linux anyway i have
security mind as well but it just getting to setup and i can fine tune
everything after.

I have got it working after getting the above messages i added the
"require 'rake/dsl_definition'" before the require 'rake' in the rake
file and after a few other error i got it working and as you suggested
the space issue i sorted them and when i db:create it works great.

p.s i did found something before finding to put the require
'rake/dsl_definition ' that it was because the rake 9.0 broken rails,
but this was not the case as i had a higher version than that.

Many thanks for all the help

Paul

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment