Sponsored Content
Top Forums Web Development Problems starting webserver (WEBRick) on Rails Post 303040852 by alexcol on Thursday 7th of November 2019 05:49:29 PM
Old 11-07-2019
Good evening

I appreciate both for your help;

As far as i know i installed node js according to instructions from url
Code:
railsapps.github.io/installing-rails.html

i installed node js bit i did not set it to PATH, dont know it has something to do with those errors:

these are the steps:

Code:
sudo apt-get update

Code:
sudo apt-get install curl

Code:
\curl -L https://get.rvm.io | bash -s stable --ruby

If You Already Have RVM Installed
If you already have RVM installed, update it to the latest version and install Ruby:

Code:
$ rvm get stable --autolibs=enable
$ rvm install ruby
$ rvm --default use ruby-2.4.2

Code:
Install Node.js
sudo apt-get install nodejs

and set it in your $PATH. .. I DID NOT DO IT, dont know it has something to do

If you don't install Node.js, you'll need to add this to the Gemfile for each Rails application you build:

Code:
gem 'therubyracer'
gem update --system
rvm gemset list
$ rvm gemset use global
$ gem list

Code:
gem install bundler

i did not consider necessary Rails installation options so i skipped these steps, dont know its has sth to do

Once again I appreciate your help in advanced
 

8 More Discussions You Might Find Interesting

1. Solaris

Problems starting apache 1.3 with mysql

I've been working on a project to replace one of the my group's primary NIS servers. It also runs mysql and apache, as it is the host for the our team's hardware tracking database and website. Its running apache 1.3, and for some odd reason, I can't get apache to start on system boot. The... (1 Reply)
Discussion started by: godspunk32
1 Replies

2. UNIX for Dummies Questions & Answers

Problems starting X windows

After i login i try to start X windows by using the "startx" command. All it does is return "startx: Command not found". Any help would be great.:), By the way I'm using freeBSD. (1 Reply)
Discussion started by: spacebizall
1 Replies

3. Solaris

Having problems starting up NFS on an OpenSolaris box

I am trying to set up an OpenSolaris box to be an NFS server. The OpenSolaris version is 2008.11. The kernel (uname -a output) is: SunOS minime-28 5.11 snv_101b i86pc i386 i86pc It is running ZFS but I know nothing about ZFS. I have an entry in the /etc/dfs/dfstab file: share -F... (1 Reply)
Discussion started by: sqa777
1 Replies

4. Web Development

Problems starting Apache 2.0.54

Hi, I just installed Apache 2.0.54 and when I try and start httpd I get mohit@mohit-desktop:/sw/pkg/apache/bin$ ./httpd -k start httpd: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (13): make_sock: could not bind to address :80 no listening... (1 Reply)
Discussion started by: mojoman
1 Replies

5. Web Development

how to pass data in webrick sevelts? please help

Hi all, I am a newbie to servlet programming using webrick... Was wondering how to accept data from a form and do necessary processing.. To start with i wrote a sample servlet that accepts a name and prints "welcome <name>" But I do not know how to take this value from the form into the... (0 Replies)
Discussion started by: wrapster
0 Replies

6. Programming

issues regarding <frameset> usage in webrick servlets, pls help

Hi all, Ive been trying to execute <frameset> tags within webrick servlets.. But when the server is started i get erreneous o/p ... The html code if executed individually runs flawlesswelly but inside the servlet it cribs... Could anyone please help me out? (0 Replies)
Discussion started by: wrapster
0 Replies

7. Programming

Ubuntu ruby on rails

Hi, I am a php developer and I decided to learn ruby on rails. I have a few question. I have an ubuntu virtual machine with lamp. It mean that it has alrweady php and when I access the ip of the machine from my browser it does load the index.php. if I install ruby on rails will theere... (0 Replies)
Discussion started by: programAngel
0 Replies

8. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
REST::Application::Routes(3pm)				User Contributed Perl Documentation			    REST::Application::Routes(3pm)

NAME
REST::Application::Routes - An implementation of Ruby on Rails type routes. SYNOPSIS
package MyApp; use base 'REST::Application::Routes'; my $obj = REST::Application::Routes->new(); $obj->loadResource( '/data/workspaces/:ws/pages/:page', => &do_thing, # ... other routes here ... ); sub do_thing { my %vars = @_; print $vars{ws} . " " . $vars{page} . " "; } # Now, in some other place. Maybe a CGI file or an Apache handler, do: use MyApp; MyApp->new->run("/data/workspaces/cows/pages/good"); # prints "cows good" DESCRIPTION
Ruby on Rails has this concept of routes. Routes are URI path info templates which are tied to specific code (i.e. Controllers and Actions in Rails). That is routes consist of key value pairs, called the route map, where the key is the path info template and the value is a code reference. A template is of the form: "/foo/:variable/bar" where variables are always prefaced with a colon. When a given path is passed to "run()" the code reference which the template maps to will be passed a hash where the keys are the variable names (sans colon) and the values are what was specified in place of the variables. The route map is ordered, so the most specific matching template is used and so you should order your templates from least generic to most generic. See REST::Application for details. The only difference between this module and that one is that this one uses URI templates as keys in the "resourceHooks" rather than regexes. METHODS
These are methods which REST::Application::Routes has but its superclass does not. getTemplateVars() Returns a hash whose keys are the ":symbols" from the URI template and whose values are what where matched to be there. It is assumed that this method is called either from within or after "loadResource()" is called. Otherwise you're likely to get an empty hash back. getLastMatchTemplate() This is an alias for "getLastMatchPattern()", since this class is about templates rather than regexes. AUTHORS
Matthew O'Connor <matthew@canonical.org> LICENSE
This program is free software. It is subject to the same license as Perl itself. SEE ALSO
REST::Application, <http://manuals.rubyonrails.com/read/chapter/65> perl v5.10.0 2007-08-09 REST::Application::Routes(3pm)
All times are GMT -4. The time now is 07:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy