techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Jul 26, 2012, 10:16 AM   #1
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

Ruby app

Hi all!
I have to install a ruby application on a linux server using a windows 7 OS
How can i do that? I have never used ruby and what is worse, there are no videos on youtube
to explain how to install files on a server, for a ruby app.
Anyone help!

Last edited by Aleksander; Jul 26, 2012 at 10:33 AM.
Aleksander is online now  
Reply With Quote
Old Jul 26, 2012, 10:35 AM   #2
CounterZeus
75 Posts
 
CounterZeus's Avatar
 
Join Date: Oct 2009
Location: Belgium
Posts: 153 (0.12/day)
Thanks: 40
Thanked 23 Times in 21 Posts

System Specs

You can use putty for accessing the server and give in commands.
For one time file transfers, I recommend filezilla or winscp.

Other than that, I've only used Ruby (on rails) for my bachelor test and I didn't like it.
Maybe this will help: http://ruby.about.com/od/tutorials/h...allrubylin.htm
__________________
Nazgul: Lenovo Thinkpad X121e, 11.6", Intel Core i3 2367M, 8GB DDR3, Intel HD 3000, 320GB HDD
CounterZeus is online now  
Reply With Quote
The Following User Says Thank You to CounterZeus For This Useful Post:
Old Jul 26, 2012, 10:38 AM   #3
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

It is not that i cant access the server.
I have all the files, but there is no index!
How can i install it when there is no file like the index.php

With terminal wndow it referrs to the ruby terminal or cmd?

And ruby seems really stupid... Rakefile lol!

Last edited by Aleksander; Jul 26, 2012 at 10:44 AM.
Aleksander is online now  
Reply With Quote
Old Jul 26, 2012, 11:14 AM   #4
Aquinus
3500 Posts
 
Aquinus's Avatar
 
Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,232 (8.87/day)
Thanks: 1,259
Thanked 1,309 Times in 973 Posts

System Specs

Ruby web applications don't work like PHP where a script gets run over the internet. If you want to host a ruby app, you really need to use RoR (Ruby on Rails,) which a lot of people don't like or something like Sinatra or Rack.

Sinatra is pretty simple, maybe that will be more like what you're looking for. Keep in mind that Sinatra is web app and web server all in one.

Be careful what you say about ruby, if you call it better than PHP a lot of people might disown you.

http://www.sinatrarb.com/

Edit: If you want to use Rails and Apache, maybe something like this is what you're looking for: http://www.modrails.com/
__________________
MyHeat

Last edited by Aquinus; Jul 26, 2012 at 11:21 AM.
Aquinus is offline  
Crunching for Team TPU
Reply With Quote
The Following User Says Thank You to Aquinus For This Useful Post:
Old Jul 26, 2012, 11:21 AM   #5
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

So how am i supposed to get it work on the server?
It has already a ruby on rails app creator which i created (just after a click it creates it itself).
I put in all files. I run the url and it says it cannot be found!

Also, a program which is nearly impossible to find any tutorials and other resources to get you started
seems a HUGE dissapointment. How can the people support it when there are no tutorials? LOL

Last edited by Aleksander; Jul 26, 2012 at 11:29 AM.
Aleksander is online now  
Reply With Quote
Old Jul 26, 2012, 11:26 AM   #6
Aquinus
3500 Posts
 
Aquinus's Avatar
 
Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,232 (8.87/day)
Thanks: 1,259
Thanked 1,309 Times in 973 Posts

System Specs

I personally don't have experience with RoR, I've heard nasty things but maybe this will help you out. It sounds like you've figured half of it out on your own anyways.
http://guides.rubyonrails.org/getting_started.html
__________________
MyHeat
Aquinus is offline  
Crunching for Team TPU
Reply With Quote
The Following User Says Thank You to Aquinus For This Useful Post:
Old Jul 26, 2012, 11:34 AM   #7
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

The files are all ready! It is a self-made script. The only problem is where can i open it?
Even in a local machine i cannot open it! It wont recognize it.
Aleksander is online now  
Reply With Quote
Old Jul 26, 2012, 11:38 AM   #8
Aquinus
3500 Posts
 
Aquinus's Avatar
 
Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,232 (8.87/day)
Thanks: 1,259
Thanked 1,309 Times in 973 Posts

System Specs

Quote:
Originally Posted by Aleksander Dishnica View Post
The files are all ready! It is a self-made script. The only problem is where can i open it?
Even in a local machine i cannot open it! It wont recognize it.
RoR runs a web server, like Sinatra. Maybe you're looking for this: http://guides.rubyonrails.org/gettin...the-web-server

Quote:
4.1 Starting up the Web Server
You actually have a functional Rails application already. To see it, you need to start a web server on your development machine. You can do this by running:

$ rails server
I'm assuming you replace the "server" name with your web application? Once again, I don't use rails so bare with me.
__________________
MyHeat
Aquinus is offline  
Crunching for Team TPU
Reply With Quote
Old Jul 26, 2012, 11:53 AM   #9
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

I am trying to do it, but it wont work again.
So difficult :S
Aleksander is online now  
Reply With Quote
Old Jul 26, 2012, 02:05 PM   #10
Aleksander
2000 Posts
 
Aleksander's Avatar
 
Join Date: Dec 2009
Posts: 3,028 (2.40/day)
Thanks: 648
Thanked 280 Times in 228 Posts

System Specs

Anyone can help?
Aleksander is online now  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI Ruby Case u2konline Cases, Modding & Electronics 5 Feb 9, 2009 07:28 PM
[Case Gallery] RUBY, RUBY, RUBY, RUBY (HD3870 X-Fire Rig) HookeyStreet Case Mod Gallery 38 Jan 4, 2008 11:25 AM
Ruby over at Youtube Bastieeeh News 14 Mar 21, 2007 07:51 PM
Ruby. technicks Games 8 Mar 21, 2007 12:56 AM
Project: Blue Ruby Juggernaut1987 Project Logs 11 Jun 18, 2006 12:22 PM


All times are GMT. The time now is 03:10 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts