Re: [Radiant] Radiant 1.0 installation

2012-05-31 Thread goodluckpaul
Please tell me the commands I should use to install radiant locally with
gems BUT THEN unpack everything in the radiant directory so I could upload
it to my webhost without caring about installed extensions or gems there!!

Thanks for your time!!

On Mon, May 14, 2012 at 11:58 PM, goodluckpaul wrote:

> when I install radiant locally I don't get this error, I guess it's
> because I cant install gems on my webserver or I can't use too much RAM on
> my server?!
> But does it affect my installation?!
>
> I have another question concerning this:
> I'm quite new to ruby and rails, I'm sorry! :-/
>
> I read something about "vendorizing" -- does it mean, I could install
> radiant + extensions locally on my Mac, then "vendorize" it (--> all needed
> gems get downloaded) and then I can upload my radiant folder on my server
> without caring about installed gems there.
> Is this possible? How would I do that?
>
> Please be patient with me!!
> Thanks!
> Paul
>
>
>
>
> On Sat, May 12, 2012 at 10:31 AM, goodluckpaul wrote:
>
>> Thanks for your answers!!!
>>
>> I already wanted to paste my env data, error logs, etc.
>> But your comment  "this problem is specific to my web server" kept me
>> trying.
>>
>> Turns out, I had to add
>>
>> require 'rubygems'
>>
>> in my dispatch.fcgi
>>
>> Everything seems to work better now :-)
>>
>> I can see the admin login in my browser, but: I can't setup the database
>> now, because of some memory errors.
>> But even during "gem install radiant", I get this error:
>>
>>   .
>>>   .
>>>   create  config/environment.rb
>>>   create  config/boot.rb
>>>   create  config/initializers/radiant_config.rb
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/remote_specification.rb:16:in
>>> `initialize': failed to allocate memory (NoMemoryError)
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:237:in
>>> `new'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:237:in
>>> `remote_specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:235:in
>>> `each'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:235:in
>>> `remote_specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:253:in
>>> `each'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:253:in
>>> `fetch_all_remote_specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:234:in
>>> `remote_specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:231:in
>>> `each'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:231:in
>>> `remote_specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:165:in
>>> `fetch_specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:70:in
>>> `specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:159:in
>>> `index'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:158:in
>>> `each'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:158:in
>>> `index'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/index.rb:7:in
>>> `build'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:157:in
>>> `index'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:151:in
>>> `resolve'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in
>>> `specs'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:85:in
>>> `resolve_remotely!'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:43:in
>>> `run'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in
>>> `install'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in
>>> `install'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
>>> `send'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
>>> `run'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in
>>> `invoke_task'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in
>>> `dispatch'
>>> from
>>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in
>>> `start'
>>> from
>

Re: [Radiant] Radiant 1.0 installation

2012-05-14 Thread goodluckpaul
when I install radiant locally I don't get this error, I guess it's because
I cant install gems on my webserver or I can't use too much RAM on my
server?!
But does it affect my installation?!

I have another question concerning this:
I'm quite new to ruby and rails, I'm sorry! :-/

I read something about "vendorizing" -- does it mean, I could install
radiant + extensions locally on my Mac, then "vendorize" it (--> all needed
gems get downloaded) and then I can upload my radiant folder on my server
without caring about installed gems there.
Is this possible? How would I do that?

Please be patient with me!!
Thanks!
Paul



On Sat, May 12, 2012 at 10:31 AM, goodluckpaul wrote:

> Thanks for your answers!!!
>
> I already wanted to paste my env data, error logs, etc.
> But your comment  "this problem is specific to my web server" kept me
> trying.
>
> Turns out, I had to add
>
> require 'rubygems'
>
> in my dispatch.fcgi
>
> Everything seems to work better now :-)
>
> I can see the admin login in my browser, but: I can't setup the database
> now, because of some memory errors.
> But even during "gem install radiant", I get this error:
>
>   .
>>   .
>>   create  config/environment.rb
>>   create  config/boot.rb
>>   create  config/initializers/radiant_config.rb
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/remote_specification.rb:16:in
>> `initialize': failed to allocate memory (NoMemoryError)
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:237:in
>> `new'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:237:in
>> `remote_specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:235:in
>> `each'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:235:in
>> `remote_specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:253:in
>> `each'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:253:in
>> `fetch_all_remote_specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:234:in
>> `remote_specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:231:in
>> `each'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:231:in
>> `remote_specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:165:in
>> `fetch_specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:70:in
>> `specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:159:in
>> `index'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:158:in
>> `each'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:158:in
>> `index'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/index.rb:7:in
>> `build'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:157:in
>> `index'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:151:in
>> `resolve'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in
>> `specs'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:85:in
>> `resolve_remotely!'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:43:in
>> `run'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in
>> `install'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in
>> `install'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
>> `send'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
>> `run'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in
>> `invoke_task'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in
>> `dispatch'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in
>> `start'
>> from
>> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/bin/bundle:13
>> Fetching source index for http://rubygems.org/
>>   readme  ../../../../INSTALL.md
>> # Installation and Setup
>>
>> From within the directory containing your Radiant instance:
>>
>> 1. Decide which database you want to use. SQLite is configured by default
>> and
>>the easiest way to get started. If you want to use another database:
>>- Enable your preferred dat

Re: [Radiant] Radiant 1.0 installation

2012-05-12 Thread goodluckpaul
Thanks for your answers!!!

I already wanted to paste my env data, error logs, etc.
But your comment  "this problem is specific to my web server" kept me
trying.

Turns out, I had to add

require 'rubygems'

in my dispatch.fcgi

Everything seems to work better now :-)

I can see the admin login in my browser, but: I can't setup the database
now, because of some memory errors.
But even during "gem install radiant", I get this error:

  .
>   .
>   create  config/environment.rb
>   create  config/boot.rb
>   create  config/initializers/radiant_config.rb
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/remote_specification.rb:16:in
> `initialize': failed to allocate memory (NoMemoryError)
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:237:in
> `new'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:237:in
> `remote_specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:235:in
> `each'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:235:in
> `remote_specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:253:in
> `each'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:253:in
> `fetch_all_remote_specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:234:in
> `remote_specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:231:in
> `each'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:231:in
> `remote_specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:165:in
> `fetch_specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/source.rb:70:in
> `specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:159:in
> `index'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:158:in
> `each'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:158:in
> `index'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/index.rb:7:in
> `build'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:157:in
> `index'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:151:in
> `resolve'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in
> `specs'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/definition.rb:85:in
> `resolve_remotely!'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:43:in
> `run'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in
> `install'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in
> `install'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
> `send'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in
> `run'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in
> `invoke_task'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in
> `dispatch'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in
> `start'
> from
> /usr/local/ruby/lib/ruby/gems/1.8/gems/bundler-1.0.21/bin/bundle:13
> Fetching source index for http://rubygems.org/
>   readme  ../../../../INSTALL.md
> # Installation and Setup
>
> From within the directory containing your Radiant instance:
>
> 1. Decide which database you want to use. SQLite is configured by default
> and
>the easiest way to get started. If you want to use another database:
>- Enable your preferred database adapter in the Gemfile
>- Run `bundle update`
>
> 2. Run `bundle exec rake production db:bootstrap` to initialize the
> database
>

Is this something serious or can I ignore it?!


Re: [Radiant] Radiant 1.0 installation

2012-05-08 Thread Sam Whited
On Mon, May 7, 2012 at 6:17 AM, goodluckpaul  wrote:
> Hello guys,

Hi

> - Now I'm not sure WHERE to install radiant: in /home/USER/ or
> /home/USER/www
>    either way, it doesn't work for me; but wouldn't it be more secure to NOT
> install it in www but just symlink from there?!
>

No, a soft link won't add any sort of security. The only reason to
symlink from a different directory would be for your convenience, and
if the symlink points to a different drive some servers (apache2) will
refuse to follow it.
As for what path to put it in, that's entirely dependent on your
server configuration. If you're running apache in a standard way, you
can probably dig around in /etc/apache2/ (if you have access) until
you find a config file where the path is set.

>
> - I think I don't know the right settings for the .htaccess and
> environment.rb for getting my site running in the browser, how to redirect
> the domain, and to which directory, etc 
>

Can you stick those files in a gist or pastebin?

>
> Please tell me, what I should take care of!
> Thanks, Paul

What does the error say, what version of rails, ruby, bundler, etc.
are you using, any other useful information?


-- 
Sam Whited
pub 2048R/0DBB515F

SamWhited.com
s...@samwhited.com
404.492.6008


Re: [Radiant] Radiant 1.0 installation

2012-05-08 Thread Jim Gay
It sounds like this problem is specific to your web server.
You're getting a 500 error, but what does the error say?

On Mon, May 7, 2012 at 6:17 AM, goodluckpaul  wrote:
> Hello guys,
>
> I'm really having troubles getting radiant running on my webhost (I'm always
> getting Error 500). I'm trying it all last week now..
> It would be great, if someone could give me instructions!
>
> - I can't install gems myself, but they installed radiant, mysql etc for me.
> - I can't set up vhosts but I bought an extra domain, which I can direct to
> every directory in /home/USER/www
> - I can set up symlinks
> - "radiant -d mysql DIRECTORY" works fine also "bundle exec rake production
> db:bootstrap", selecting username, password, etc .
>
> - Now I'm not sure WHERE to install radiant: in /home/USER/ or
> /home/USER/www
>    either way, it doesn't work for me; but wouldn't it be more secure to NOT
> install it in www but just symlink from there?!
>
>
> - I think I don't know the right settings for the .htaccess and
> environment.rb for getting my site running in the browser, how to redirect
> the domain, and to which directory, etc 
>
>
> Please tell me, what I should take care of!
> Thanks, Paul



-- 
Write intention revealing code #=> http://www.clean-ruby.com

Jim Gay
Saturn Flyer LLC
571-403-0338


[Radiant] Radiant 1.0 installation

2012-05-08 Thread goodluckpaul
Hello guys,

I'm really having troubles getting radiant running on my webhost (I'm
always getting Error 500). I'm trying it all last week now..
It would be great, if someone could give me instructions!

- I can't install gems myself, but they installed radiant, mysql etc for me.
- I can't set up vhosts but I bought an extra domain, which I can direct to
every directory in /home/USER/www
- I can set up symlinks
- "radiant -d mysql DIRECTORY" works fine also "bundle exec rake production
db:bootstrap", selecting username, password, etc .

- Now I'm not sure WHERE to install radiant: in /home/USER/ or
/home/USER/www
   either way, it doesn't work for me; but wouldn't it be more secure to
NOT install it in www but just symlink from there?!


- I think I don't know the right settings for the .htaccess and
environment.rb for getting my site running in the browser, how to redirect
the domain, and to which directory, etc 


Please tell me, what I should take care of!
Thanks, Paul