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
UNICORN_RAILS(1)					      General Commands Manual						  UNICORN_RAILS(1)

NAME
unicorn_rails - a script/server-like command to launch the Unicorn HTTP server SYNOPSIS
unicorn_rails [-c CONFIG_FILE] [-E RAILS_ENV] [-D] [RACKUP_FILE] DESCRIPTION
A rackup(1)-like command to launch Rails applications using Unicorn. It is expected to be started in your Rails application root (RAILS_ROOT), but the "working_directory" directive may be used in the CONFIG_FILE. It is designed to help Rails 1.x and 2.y users transition to Rack, but it is NOT needed for Rails 3 applications. Rails 3 users are encouraged to use unicorn(1) instead of unicorn_rails(1). Users of Rails 1.x/2.y may also use unicorn(1) instead of unicorn_rails(1). The outward interface resembles rackup(1), the internals and default middleware loading is designed like the script/server command distrib- uted with Rails. While Unicorn takes a myriad of command-line options for compatibility with ruby(1) and rackup(1), it is recommended to stick to the few command-line options specified in the SYNOPSIS and use the CONFIG_FILE as much as possible. UNICORN OPTIONS
-c, --config-file CONFIG_FILE Path to the Unicorn-specific config file. The config file is implemented as a Ruby DSL, so Ruby code may executed. See the RDoc/ri for the Unicorn::Configurator class for the full list of directives available from the DSL. Using an absolute path for for CON- FIG_FILE is recommended as it makes multiple instances of Unicorn easily distinguishable when viewing ps(1) output. -D, --daemonize Run daemonized in the background. The process is detached from the controlling terminal and stdin is redirected to "/dev/null". Unlike many common UNIX daemons, we do not chdir to "/" upon daemonization to allow more control over the startup/upgrade process. Unless specified in the CONFIG_FILE, stderr and stdout will also be redirected to "/dev/null". Daemonization will skip loading of the Rails::Rack::LogTailer middleware under Rails >= 2.3.x. By default, unicorn_rails(1) will create a PID file in "RAILS_ROOT/tmp/pids/unicorn.pid". You may override this by specifying the "pid" directive to override this Unicorn config file. -E, --env RAILS_ENV Run under the given RAILS_ENV. This sets the RAILS_ENV environment variable. Acceptable values are exactly those you expect in your Rails application, typically "development" or "production". -l, --listen ADDRESS Listens on a given ADDRESS. ADDRESS may be in the form of HOST:PORT or PATH, HOST:PORT is taken to mean a TCP socket and PATH is meant to be a path to a UNIX domain socket. Defaults to "0.0.0.0:8080" (all addresses on TCP port 8080). For production deploy- ments, specifying the "listen" directive in CONFIG_FILE is recommended as it allows fine-tuning of socket options. RACKUP COMPATIBILITY OPTIONS
-o, --host HOST Listen on a TCP socket belonging to HOST, default is "0.0.0.0" (all addresses). If specified multiple times on the command-line, only the last-specified value takes effect. This option only exists for compatibility with the rackup(1) command, use of "-l"/"--listen" switch is recommended instead. -p, --port PORT Listen on the specified TCP PORT, default is 8080. If specified multiple times on the command-line, only the last-specified value takes effect. This option only exists for compatibility with the rackup(1) command, use of "-l"/"--listen" switch is recommended instead. --path PATH Mounts the Rails application at the given PATH (instead of "/"). This is equivalent to setting the RAILS_RELATIVE_URL_ROOT environ- ment variable. This is only supported under Rails 2.3 or later at the moment. RUBY OPTIONS
-e, --eval LINE Evaluate a LINE of Ruby code. This evaluation happens immediately as the command-line is being parsed. -d, --debug Turn on debug mode, the $DEBUG variable is set to true. For Rails >= 2.3.x, this loads the Rails::Rack::Debugger middleware. -w, --warn Turn on verbose warnings, the $VERBOSE variable is set to true. -I, --include PATH specify $LOAD_PATH. PATH will be prepended to $LOAD_PATH. The ':' character may be used to delimit multiple directories. This directive may be used more than once. Modifications to $LOAD_PATH take place immediately and in the order they were specified on the command-line. -r, --require LIBRARY require a specified LIBRARY before executing the application. The "require" statement will be executed immediately and in the order they were specified on the command-line. RACKUP FILE
This defaults to "config.ru" in RAILS_ROOT. It should be the same file used by rackup(1) and other Rack launchers, it uses the Rack::Builder DSL. Unlike many other Rack applications, RACKUP_FILE is completely optional for Rails, but may be used to disable some of the default middleware for performance. Embedded command-line options are mostly parsed for compatibility with rackup(1) but strongly discouraged. ENVIRONMENT VARIABLES
The RAILS_ENV variable is set by the aforementioned -E switch. The RAILS_RELATIVE_URL_ROOT is set by the aforementioned --path switch. Either of these variables may also be set in the shell or the Unicorn CONFIG_FILE. All application or library-specific environment vari- ables (e.g. TMPDIR, RAILS_ASSET_ID) may always be set in the Unicorn CONFIG_FILE in addition to the spawning shell. When transparently upgrading Unicorn, all environment variables set in the old master process are inherited by the new master process. Unicorn only uses (and will overwrite) the UNICORN_FD environment variable internally when doing transparent upgrades. SIGNALS
The following UNIX signals may be sent to the master process: o HUP - reload config file, app, and gracefully restart all workers o INT/TERM - quick shutdown, kills all workers immediately o QUIT - graceful shutdown, waits for workers to finish their current request before finishing. o USR1 - reopen all logs owned by the master and all workers See Unicorn::Util.reopen_logs for what is considered a log. o USR2 - reexecute the running binary. A separate QUIT should be sent to the original process once the child is verified to be up and run- ning. o WINCH - gracefully stops workers but keep the master running. This will only work for daemonized processes. o TTIN - increment the number of worker processes by one o TTOU - decrement the number of worker processes by one See the SIGNALS (http://unicorn.bogomips.org/SIGNALS.html) document for full description of all signals used by Unicorn. SEE ALSO
o unicorn(1) o Rack::Builder ri/RDoc o Unicorn::Configurator ri/RDoc o Unicorn RDoc (http://unicorn.bogomips.org/) o Rack RDoc (http://rack.rubyforge.org/doc/) o Rackup HowTo (http://wiki.github.com/rack/rack/tutorial-rackup-howto) AUTHORS
The Unicorn Community <mongrel-unicorn@rubyforge.org>. Unicorn User Manual September 17, 2009 UNICORN_RAILS(1)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy