Media Temple Setup

Hi.

I’m soooo new to Ruby and Rails and wanted to try radiant on my media
temple server.

Can somebody in here help me? I’m stuck. MT provides instructions on how
to set up radiant.

Which is nice. Except when you get stuck and there’s nobody to help you.

Here’s their document/instructions:
http://kb.mediatemple.net/article.php?id=152

Step 8 says to run a script.

This is the command: …/script/setup_database production

Run it how?! When one types this command into Termial, one gets a
massive error! Does anybody know if I need to go to a specific directory
before I run this command? If yes, does anybody know where I must go and
what such a command would look like in Terminal?

I’m close, I just know it, but I cannot get this to work.

I have logged in and logged out a million times, and googled, and tried
everything I can to get help.

Any advice would be appreciated.

Thank you!

Have you looked at the script?
What does the first line say?
What language is it in?
Where is your ruby executable?

Jena Jena said the following on 03/07/2007 03:44 PM:

Here’s their document/instructions:

I’m close, I just know it, but I cannot get this to work.

I have logged in and logged out a million times, and googled, and tried
everything I can to get help.

Any advice would be appreciated.

Thank you!


Men fear thought as they fear nothing else on earth, more than ruin,
more
even than death. . . . Thought is subversive and revolutionary,
destructive
and terrible, thought is merciless to privilege, established
institutions,
and comfortable habit. Thought looks into the pit of hell and is not
afraid.
Thought is great and swift and free, the light of the world, and the
chief
glory of man.
– Bertrand Russell

Hi!

The first line says: #!/usr/bin/env ruby

I have no idea what language it is in. I’m not a programmer and I’m just
trying to teach myself this stuff.

I also don’t know where my ruby is executable.

If I could figure that out, I’d know how to access the script from
terminal, yes?

Am I even on the right track?

Thank you!

Anton A. wrote:

Have you looked at the script?
What does the first line say?
What language is it in?
Where is your ruby executable?

Jena Jena said the following on 03/07/2007 03:44 PM:

Here’s their document/instructions:

I’m close, I just know it, but I cannot get this to work.

I have logged in and logged out a million times, and googled, and tried
everything I can to get help.

Any advice would be appreciated.

Thank you!


Men fear thought as they fear nothing else on earth, more than ruin,
more
even than death. . . . Thought is subversive and revolutionary,
destructive
and terrible, thought is merciless to privilege, established
institutions,
and comfortable habit. Thought looks into the pit of hell and is not
afraid.
Thought is great and swift and free, the light of the world, and the
chief
glory of man.
– Bertrand Russell

Hi Jena,

Try running the script with the word ‘ruby’ in front of it. If you do
not have Ruby installed, well then I am afraid you have to ask again.

ruby …/script/setup_database production

Regards,
Erik.

Jena Jena wrote:

terminal, yes?

Where is your ruby executable?

Any advice would be appreciated.
institutions,
and comfortable habit. Thought looks into the pit of hell and is not
afraid.
Thought is great and swift and free, the light of the world, and the
chief
glory of man.
– Bertrand Russell


Erik van Oosten

Jena Jena said the following on 03/07/2007 04:00 PM:

Hi!

The first line says: #!/usr/bin/env ruby
^^^^
Hint --------------------|

I have no idea what language it is in. I’m not a programmer and I’m just
trying to teach myself this stuff.

I also don’t know where my ruby is executable.

Do you know what operating system you’re running under?

Hint:

   try running "/usr/bin/env ruby"

If I could figure that out, I’d know how to access the script from
terminal, yes?

Yes.

Am I even on the right track?

No.

I’m not trying to be obscure, I’m trying to get you to solve your
problem
instead of calling for help at every hurdle and blindly following
instructions and learning nothing.

I suspect that your are going to have to learn a modicum of, if not
programming in the sense of “C++”, then basic command line scripting and
bit
about Ruby and some background about how Rails works.

Ruby is totally installed - it comes with the package…

I’ll try this now…

Thanks!

Erik van Oosten wrote:

Hi Jena,

Try running the script with the word ‘ruby’ in front of it. If you do
not have Ruby installed, well then I am afraid you have to ask again.

ruby …/script/setup_database production

Regards,
Erik.

Jena Jena wrote:

terminal, yes?

Where is your ruby executable?

Any advice would be appreciated.
institutions,
and comfortable habit. Thought looks into the pit of hell and is not
afraid.
Thought is great and swift and free, the light of the world, and the
chief
glory of man.
– Bertrand Russell


Erik van Oosten
http://day-to-day-stuff.blogspot.com/

Nope. No go.

I give up. It’s in there someplace, but I can’t seem to figure out how
to target it.

Thanks for the help!

-Jena

Jena Jena wrote:

Ruby is totally installed - it comes with the package…

I’ll try this now…

Thanks!

Erik van Oosten wrote:

Hi Jena,

Try running the script with the word ‘ruby’ in front of it. If you do
not have Ruby installed, well then I am afraid you have to ask again.

ruby …/script/setup_database production

Regards,
Erik.

Jena Jena wrote:

terminal, yes?

Where is your ruby executable?

Any advice would be appreciated.
institutions,
and comfortable habit. Thought looks into the pit of hell and is not
afraid.
Thought is great and swift and free, the light of the world, and the
chief
glory of man.
– Bertrand Russell


Erik van Oosten
http://day-to-day-stuff.blogspot.com/

Jena Jena wrote:

I missed a step in my inital setup.

I’m an idiot. My paths were all wrong.

It’s ok now, and MT were, in the end, helpful in helping me.

Thanks so much!

-Jena

Would you be prepared to share the solution? I’m currently wrestling
with a similar problem. (i.e. Attempting to install Radiant in my MT
container)

The answer is probably blatantly obvious; but I’ve been looking for so
long now it could be right under my nose and I’d miss it!

To cut a long story short, when I run ‘setup_database’ from the root of
the Radiant directory using:

                    ruby script/setup_database production

The database is not populated. (I’ll spare you the output from PuTTY,
for now).

I missed a step in my inital setup.

I’m an idiot. My paths were all wrong.

It’s ok now, and MT were, in the end, helpful in helping me.

Thanks so much!

-Jena

Jena Jena wrote:

Nope. No go.

I give up. It’s in there someplace, but I can’t seem to figure out how
to target it.

Thanks for the help!

-Jena

Jena Jena wrote:

Ruby is totally installed - it comes with the package…

I’ll try this now…

Thanks!

Erik van Oosten wrote:

Hi Jena,

Try running the script with the word ‘ruby’ in front of it. If you do
not have Ruby installed, well then I am afraid you have to ask again.

ruby …/script/setup_database production

Regards,
Erik.

Jena Jena wrote:

terminal, yes?

Where is your ruby executable?

Any advice would be appreciated.
institutions,
and comfortable habit. Thought looks into the pit of hell and is not
afraid.
Thought is great and swift and free, the light of the world, and the
chief
glory of man.
– Bertrand Russell


Erik van Oosten
http://day-to-day-stuff.blogspot.com/