- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 Rails 3.2.14 应用程序,可以在生产服务器上正常部署和运行。我正在努力将其部署到另一台服务器以在推出生产之前测试更改。我正在运行最新版本的乘客/nginx 并使用 Capistrano 2.12.0 和 Ruby 1.9.3-p194,因为这是一个遗留应用程序,我正在尝试模仿环境。
我可以毫无问题地部署该应用程序,但它不会产生乘客并启动该应用程序。
这是我在/var/log/nginx/error.log 中遇到的错误之一
[ 2014-08-10 07:09:08.7782 733/7f2626fb2700 Pool2/Implementation.cpp:284 ]: Could not spawn process for application /home/d
eploy/exigencad/current: An error occured while starting up the preloader.
Error ID: aa5360f9
Error details saved to: /tmp/passenger-error-0aEhJZ.html
Message from application: cannot load such file -- bundler/setup (LoadError)
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:263:in `block in run_load_path_setup_code'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:366:in `running_bundler'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:261:in `run_load_path_setup_code'
/usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
[ 2014-08-10 07:09:08.7874 733/7f2624c8d700 agents/HelperAgent/RequestHandler.h:2305 ]: [Client 20] Cannot checkout session
because a spawning error occurred. The identifier of the error is . Please see earlier logs for details about the error.
App 1521 stdout:
App 1521 stdout:
bundle -v
Bundler version 1.1.4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="Phusion Passenger">
<title>Web application could not be started</title>
<style type="text/css">
body {
font-family: Verdana, 'Bitstream Vera Sans', Arial, Sans-Serif;
font-size: 10pt;
background: white;
color: #222222;
margin: 0;
padding-top: 3em;
padding-bottom: 3em;
padding-left: 4.5em;
padding-right: 4.5em;
}
h1 {
font-size: 17pt;
font-weight: medium;
color: #533e72;
border-bottom: 1px solid #533e72;
}
h1.title {
margin-top: 0;
}
h1.error_title {
color: red;
border-bottom: 1px solid red;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
dt {
font-weight: bold;
color: #280050;
}
dd {
margin-top: 0.5em;
margin-bottom: 1em;
}
.commands {
border: 1px solid #b594e7;
background: #ddc6ff;
padding: 0.5em;
margin: 0.5em;
font-family: 'Bitstream Vera Sans Mono', 'Courier New', Monospace;
}
pre {
overflow: auto;
white-space: pre-wrap;
text-align: left;
}
table.backtrace th {
background: #8470a6;
color: white;
}
table.backtrace th,
table.backtrace td {
padding: 0.2em;
padding-left: 0.4em;
padding-right: 0.4em;
}
table.backtrace tr td {
background: #ecdfff;
}
table.backtrace tr.even td {
background: #f7f2ff;
}
table.backtrace td.index {
font-weight: bold;
}
#site_footer {
border-top: solid 1px black;
margin-top: 1em;
padding-top: 1em;
font-size: small;
color: #777777;
}
#site_footer a {
color: #65498e;
}
#site_footer a:hover {
color: #9681d9;
}
#site_header .corporate_identity {
display: none;
}
</style>
<link rel="stylesheet" type="text/css" href="http://www.modrails.com/error_pages/1.0/error_page.css">
<style type="text/css">
dd {
text-align: left;
}
dd pre {
margin-top: 0;
margin-bottom: 0;
}
</style>
</head>
<body>
<div id="site_container">
<div id="site_header">
<ul class="corporate_identity">
<li class="logo"><a href="https://www.phusionpassenger.com"><span>Phusion Passenger</span></a></li>
</ul>
</div>
<div id="site_body">
<h1 class="error_title">Web application could not be started</h1>
<div id="content">
<pre>cannot load such file -- bundler/setup (LoadError)
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:<wbr>36:<wbr>in `require'
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:<wbr>36:<wbr>in `require'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:<wbr>263:<wbr>in `block in run_load_path_setup_code'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:<wbr>366:<wbr>in `running_bundler'
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:<wbr>261:<wbr>in `run_load_path_setup_code'
/usr/share/passenger/helper-scripts/rack-preloader.rb:<wbr>100:<wbr>in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:<wbr>158:<wbr>in `<module:<wbr>App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:<wbr>29:<wbr>in `<module:<wbr>PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:<wbr>28:<wbr>in `<main>'
</pre>
<dl>
<dt>Error ID</dt>
<dd>aa5360f9</dd>
<dt>Application root</dt>
<dd>/home/deploy/exigencad/current</dd>
<dt>Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)</dt>
<dd>production</dd>
<dt>Ruby interpreter command</dt>
<dd><pre>/home/deploy/.rbenv/shims/ruby</pre></dd>
<dt>User and groups</dt>
<dd><pre>uid=<wbr>1000(deploy) gid=<wbr>1000(deploy) groups=<wbr>1000(deploy),<wbr>27(sudo)
</pre></dd>
<dt>Environment variables</dt>
<dd><pre>RBENV_VERSION =<wbr> 1.9.3-p194
TERM =<wbr> xterm-256color
SHELL =<wbr> /bin/bash
PYTHONUNBUFFERED =<wbr> 1
PASSENGER_DEBUG_DIR =<wbr> /tmp/passenger.spawn-debug.XXXX3H8hx2
SERVER_PORT =<wbr> 80
USER =<wbr> deploy
DOCUMENT_ROOT =<wbr> /home/deploy/exigencad/current/public
SCGI =<wbr> 1
RBENV_ROOT =<wbr> /home/deploy/.rbenv
REQUEST_URI =<wbr> /
IN_PASSENGER =<wbr> 1
RACK_ENV =<wbr> production
RBENV_HOOK_PATH =<wbr> :<wbr>/home/deploy/.rbenv/rbenv.d:<wbr>/usr/local/etc/rbenv.d:<wbr>/etc/rbenv.d:<wbr>/usr/lib/rbenv/hooks
REMOTE_PORT =<wbr> 64649
PATH =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/bin:<wbr>/home/deploy/.rbenv/libexec:<wbr>/home/deploy/.rbenv/plugins/ruby-build/bin:<wbr>/usr/local/sbin:<wbr>/usr/local/bin:<wbr>/sbin:<wbr>/bin:<wbr>/usr/sbin:<wbr>/usr/bin
WSGI_ENV =<wbr> production
PWD =<wbr> /home/deploy/exigencad/current
LANG =<wbr> en_US.UTF-8
NODE_PATH =<wbr> /usr/share/passenger/node
NODE_ENV =<wbr> production
REMOTE_ADDR =<wbr> 75.89.97.25
SERVER_NAME =<wbr> prod.hcems.com
HOME =<wbr> /home/deploy
SHLVL =<wbr> 0
RAILS_ENV =<wbr> production
RBENV_DIR =<wbr> /usr/share/passenger/helper-scripts
SERVER_SOFTWARE =<wbr> nginx/1.6.0
LOGNAME =<wbr> deploy
QUERY_STRING =<wbr>
SERVER_ADDR =<wbr> 72.14.181.99
SERVER_PROTOCOL =<wbr> HTTP/1.1
PASSENGER_APP_ENV =<wbr> production
REQUEST_METHOD =<wbr> GET
</pre></dd>
<dt>Ulimits</dt>
<dd><pre>Unknown</pre></dd>
<dt>System metrics</dt>
<dd><pre>------------- General -------------
Kernel version :<wbr> 3.15.4-x86_64-linode45
Uptime :<wbr> 14h 3m 25s
Load averages :<wbr> 0.01%,<wbr> 0.22%,<wbr> 0.27%
Fork rate :<wbr> unknown
------------- CPU -------------
Number of CPUs :<wbr> 4
Average CPU usage :<wbr> 0% -- 0% user,<wbr> 0% nice,<wbr> 0% system,<wbr> 100% idle
CPU 1 :<wbr> 0% -- 0% user,<wbr> 0% nice,<wbr> 0% system,<wbr> 100% idle
CPU 2 :<wbr> 0% -- 0% user,<wbr> 0% nice,<wbr> 0% system,<wbr> 100% idle
CPU 3 :<wbr> 0% -- 0% user,<wbr> 0% nice,<wbr> 0% system,<wbr> 100% idle
CPU 4 :<wbr> 0% -- 0% user,<wbr> 0% nice,<wbr> 0% system,<wbr> 100% idle
I/O pressure :<wbr> 0%
CPU 1 :<wbr> 0%
CPU 2 :<wbr> 0%
CPU 3 :<wbr> 0%
CPU 4 :<wbr> 0%
Interference from other VMs:<wbr> 0%
CPU 1 :<wbr> 0%
CPU 2 :<wbr> 0%
CPU 3 :<wbr> 0%
CPU 4 :<wbr> 0%
------------- Memory -------------
RAM total :<wbr> 4002 MB
RAM used :<wbr> 205 MB (5%)
RAM free :<wbr> 3797 MB
Swap total :<wbr> 255 MB
Swap used :<wbr> 0 MB (0%)
Swap free :<wbr> 255 MB
Swap in :<wbr> unknown
Swap out :<wbr> unknown
</pre></dd>
<dt>General Ruby interpreter information</dt>
<dd><pre>RUBY_VERSION =<wbr> 1.9.3
RUBY_PLATFORM =<wbr> x86_64-linux
RUBY_ENGINE =<wbr> ruby
RubyGems version =<wbr> 1.8.23
RubyGems paths =<wbr> ["/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1",<wbr> "/home/deploy/.gem/ruby/1.9.1"]
</pre></dd>
<dt>Ruby configuration (RbConfig::CONFIG)</dt>
<dd><pre>DESTDIR =<wbr>
MAJOR =<wbr> 1
MINOR =<wbr> 9
TEENY =<wbr> 1
PATCHLEVEL =<wbr> 194
INSTALL =<wbr> /usr/bin/install -c
EXEEXT =<wbr>
prefix =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194
ruby_install_name =<wbr> ruby
RUBY_INSTALL_NAME =<wbr> ruby
RUBY_SO_NAME =<wbr> ruby
exec =<wbr> exec
ruby_pc =<wbr> ruby-1.9.pc
PACKAGE =<wbr> ruby
BUILTIN_TRANSSRCS =<wbr> newline.c
USE_RUBYGEMS =<wbr> YES
MANTYPE =<wbr> doc
NROFF =<wbr> /usr/bin/nroff
vendorhdrdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/include/ruby-1.9.1/vendor_ruby
sitehdrdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/include/ruby-1.9.1/site_ruby
rubyhdrdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/include/ruby-1.9.1
UNIVERSAL_INTS =<wbr>
UNIVERSAL_ARCHNAMES =<wbr>
configure_args =<wbr> '--prefix=<wbr>/home/deploy/.rbenv/versions/1.9.3-p194' 'LDFLAGS=<wbr>-L/home/deploy/.rbenv/versions/1.9.3-p194/lib ' 'CPPFLAGS=<wbr>-I/home/deploy/.rbenv/versions/1.9.3-p194/include '
vendordir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/vendor_ruby
sitedir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby
ruby_version =<wbr> 1.9.1
sitearch =<wbr> x86_64-linux
arch =<wbr> x86_64-linux
RI_BASE_NAME =<wbr> ri
ridir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/ri
rubylibprefix =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby
MAKEFILES =<wbr> Makefile
THREAD_MODEL =<wbr> pthread
SYMBOL_PREFIX =<wbr>
EXPORT_PREFIX =<wbr>
COMMON_HEADERS =<wbr>
COMMON_MACROS =<wbr>
COMMON_LIBS =<wbr>
MAINLIBS =<wbr>
ENABLE_SHARED =<wbr> no
DLDLIBS =<wbr> -lc
SOLIBS =<wbr>
LIBRUBYARG_SHARED =<wbr> -Wl,<wbr>-R -Wl,<wbr>/home/deploy/.rbenv/versions/1.9.3-p194/lib -L/home/deploy/.rbenv/versions/1.9.3-p194/lib
LIBRUBYARG_STATIC =<wbr> -Wl,<wbr>-R -Wl,<wbr>/home/deploy/.rbenv/versions/1.9.3-p194/lib -L/home/deploy/.rbenv/versions/1.9.3-p194/lib -lruby-static
LIBRUBYARG =<wbr> -Wl,<wbr>-R -Wl,<wbr>/home/deploy/.rbenv/versions/1.9.3-p194/lib -L/home/deploy/.rbenv/versions/1.9.3-p194/lib -lruby-static
LIBRUBY =<wbr> libruby-static.a
LIBRUBY_ALIASES =<wbr> libruby.so
LIBRUBY_SO =<wbr> libruby.so.1.9.1
LIBRUBY_A =<wbr> libruby-static.a
RUBYW_INSTALL_NAME =<wbr>
rubyw_install_name =<wbr>
LIBRUBY_DLDFLAGS =<wbr>
LIBRUBY_LDSHARED =<wbr> gcc -shared
warnflags =<wbr> -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=<wbr>pointer-arith -Werror=<wbr>write-strings -Werror=<wbr>declaration-after-statement -Werror=<wbr>implicit-function-declaration
debugflags =<wbr> -ggdb
optflags =<wbr> -O3
cxxflags =<wbr> -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=<wbr>pointer-arith -Werror=<wbr>write-strings -Werror=<wbr>declaration-after-statement -Werror=<wbr>implicit-function-declaration
cflags =<wbr> -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=<wbr>pointer-arith -Werror=<wbr>write-strings -Werror=<wbr>declaration-after-statement -Werror=<wbr>implicit-function-declaration
cppflags =<wbr> -I/home/deploy/.rbenv/versions/1.9.3-p194/include
NULLCMD =<wbr> :<wbr>
INSTALLDOC =<wbr> all
CAPITARGET =<wbr> nodoc
RDOCTARGET =<wbr> rdoc
EXECUTABLE_EXTS =<wbr>
ARCHFILE =<wbr>
LIBRUBY_RELATIVE =<wbr> no
EXTOUT =<wbr> .ext
PREP =<wbr> miniruby
TEST_RUNNABLE =<wbr> yes
setup =<wbr> Setup
EXTSTATIC =<wbr>
STRIP =<wbr> strip -S -x
TRY_LINK =<wbr>
LIBPATHENV =<wbr> LD_LIBRARY_PATH
RPATHFLAG =<wbr> -Wl,<wbr>-R%1$-s
LIBPATHFLAG =<wbr> -L%1$-s
LINK_SO =<wbr>
LIBEXT =<wbr> a
DLEXT2 =<wbr>
DLEXT =<wbr> so
LDSHAREDXX =<wbr> g++ -shared
LDSHARED =<wbr> gcc -shared
CCDLFLAGS =<wbr> -fPIC
STATIC =<wbr>
ARCH_FLAG =<wbr>
DLDFLAGS =<wbr>
ALLOCA =<wbr>
WERRORFLAG =<wbr> -Werror
CHDIR =<wbr> cd -P
RMALL =<wbr> rm -fr
RMDIRS =<wbr> rmdir --ignore-fail-on-non-empty -p
RMDIR =<wbr> rmdir --ignore-fail-on-non-empty
CP =<wbr> cp
RM =<wbr> rm -f
PKG_CONFIG =<wbr> pkg-config
DOXYGEN =<wbr>
DOT =<wbr>
MAKEDIRS =<wbr> /bin/mkdir -p
MKDIR_P =<wbr> /bin/mkdir -p
INSTALL_DATA =<wbr> /usr/bin/install -c -m 644
INSTALL_SCRIPT =<wbr> /usr/bin/install -c
INSTALL_PROGRAM =<wbr> /usr/bin/install -c
SET_MAKE =<wbr>
LN_S =<wbr> ln -s
NM =<wbr> nm
DLLWRAP =<wbr>
WINDRES =<wbr>
OBJCOPY =<wbr> objcopy
OBJDUMP =<wbr> objdump
ASFLAGS =<wbr>
AS =<wbr> as
AR =<wbr> ar
RANLIB =<wbr> ranlib
try_header =<wbr>
COUTFLAG =<wbr> -o
OUTFLAG =<wbr> -o
CPPOUTFILE =<wbr> -o conftest.i
GNU_LD =<wbr> yes
GCC =<wbr> yes
EGREP =<wbr> /bin/grep -E
GREP =<wbr> /bin/grep
CPP =<wbr> gcc -E
CXXFLAGS =<wbr> -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=<wbr>pointer-arith -Werror=<wbr>write-strings -Werror=<wbr>declaration-after-statement -Werror=<wbr>implicit-function-declaration
CXX =<wbr> g++
OBJEXT =<wbr> o
CPPFLAGS =<wbr> -I/home/deploy/.rbenv/versions/1.9.3-p194/include -I/home/deploy/.rbenv/versions/1.9.3-p194/include
LDFLAGS =<wbr> -L. -L/home/deploy/.rbenv/versions/1.9.3-p194/lib -rdynamic -Wl,<wbr>-export-dynamic
CFLAGS =<wbr> -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=<wbr>pointer-arith -Werror=<wbr>write-strings -Werror=<wbr>declaration-after-statement -Werror=<wbr>implicit-function-declaration
CC =<wbr> gcc
target_os =<wbr> linux
target_vendor =<wbr> unknown
target_cpu =<wbr> x86_64
target =<wbr> x86_64-unknown-linux-gnu
host_os =<wbr> linux-gnu
host_vendor =<wbr> unknown
host_cpu =<wbr> x86_64
host =<wbr> x86_64-unknown-linux-gnu
RUBYW_BASE_NAME =<wbr> rubyw
RUBY_BASE_NAME =<wbr> ruby
build_os =<wbr> linux-gnu
build_vendor =<wbr> unknown
build_cpu =<wbr> x86_64
build =<wbr> x86_64-unknown-linux-gnu
RUBY_RELEASE_DATE =<wbr> 2012-04-20
RUBY_PROGRAM_VERSION =<wbr> 1.9.3
BASERUBY =<wbr> echo executable host ruby is required. use --with-baseruby option.;<wbr> false
target_alias =<wbr>
host_alias =<wbr>
build_alias =<wbr>
LIBS =<wbr> -lpthread -lrt -ldl -lcrypt -lm
ECHO_T =<wbr>
ECHO_N =<wbr> -n
ECHO_C =<wbr>
DEFS =<wbr>
mandir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/man
localedir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/locale
libdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib
psdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/doc/ruby
pdfdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/doc/ruby
dvidir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/doc/ruby
htmldir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/doc/ruby
infodir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/info
docdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share/doc/ruby
oldincludedir =<wbr> /usr/include
includedir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/include
localstatedir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/var
sharedstatedir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/com
sysconfdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/etc
datadir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share
datarootdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/share
libexecdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/libexec
sbindir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/sbin
bindir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/bin
exec_prefix =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194
PACKAGE_URL =<wbr>
PACKAGE_BUGREPORT =<wbr>
PACKAGE_STRING =<wbr>
PACKAGE_VERSION =<wbr>
PACKAGE_TARNAME =<wbr>
PACKAGE_NAME =<wbr>
PATH_SEPARATOR =<wbr> :<wbr>
SHELL =<wbr> /bin/bash
rubylibdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1
archdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux
sitelibdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1
sitearchdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1/x86_64-linux
vendorlibdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/vendor_ruby/1.9.1
vendorarchdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
topdir =<wbr> /home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux
</pre></dd>
<dt>Ruby load path ($LOAD_PATH)</dt>
<dd><pre>/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1/x86_64-linux
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/vendor_ruby/1.9.1
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/vendor_ruby/1.9.1/x86_64-linux
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/vendor_ruby
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux
</pre></dd>
<dt>Ruby loaded libraries ($LOADED_FEATURES)</dt>
<dd><pre>enumerator.so
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/defaults.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/deprecate.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/exceptions.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/etc.so
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/fileutils.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/tmpdir.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tmpio.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/operating_system.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/version.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/requirement.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/platform.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/specification.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/path_support.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/ruby.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/platform_info/binary_compatibility.rb
/home/deploy/.passenger/native_support/4.0.48/ruby-1.9.3-x86_64-linux/passenger_native_support.so
/usr/lib/ruby/vendor_ruby/phusion_passenger/native_support.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/socket.so
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/socket.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/thread.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/ruby_core_enhancements.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tmpdir.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/constants.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/public_api.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/debug_logging.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/shellwords.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/shellwords.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/fcntl.so
/usr/lib/ruby/vendor_ruby/phusion_passenger/message_channel.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/message_client.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/native_support_utils.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/unseekable_socket.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb
/home/deploy/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/stringio.so
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/tee_input.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/union_station/connection.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/union_station/transaction.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils/lock.rb
/usr/lib/ruby/vendor_ruby/phusion_passenger/union_station/core.rb
</pre></dd>
</dl>
</div>
</div>
<div id="site_footer">
<!--
You are free to modify the footer as you see fit,
but we kindly ask of you to preserve to following
text. Thank you.
-->
<div class="container">
Powered by <a href="https://www.phusionpassenger.com/">Phusion Passenger</a>,
<tt>mod_rails</tt> / <tt>mod_rack</tt> for Apache and Nginx.
</div>
</div>
</div>
</body>
</html>
require "bundler/capistrano"
set :whenever_command, "bundle exec whenever"
require "whenever/capistrano"
server "72.14.181.01", :web, :app, :db, primary: true
set :application, "appname"
set :user, "deploy"
set :deploy_to, "/home/#{user}/#{application}"
#set :deploy_via, :remote_cache
set :use_sudo, false
set :rails_env, "production"
set :scm, "git"
set :repository, "git@github.com:appguy/#{application}.git"
set :branch, "master"
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
after "deploy", "deploy:cleanup" # keep only the last 5 releases
after "deploy:update", "gps_listener:restart"
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
desc "reload the database with seed data"
task :seed do
run "cd #{current_path}; bundle exec rake db:seed RAILS_ENV=#{rails_env}"
end
end
namespace :gps_listener do
task :start do
run "#{sudo} start app-gps"
end
task :stop do
run "#{sudo} stop app-gps"
end
task :restart do
run "#{sudo} stop app-gps && sleep 1 && #{sudo} start app-gps"
end
end
task :after_update_code do
run "ln -nfs #{deploy_to}/shared/config/database.yml #{release_path}/config/database.yml"
run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec rake gps:listen"
end
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /home/deploy/.rbenv/shims/ruby;
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name prod.hcems.com;
passenger_enabled on;
rails_env production;
root /home/deploy/exigencad/current/public;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
最佳答案
看起来问题出在我的 .bashrc 文件上。
我在文件底部有以下内容:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
关于ruby-on-rails-3 - Rails Nginx 乘客无法结帐 session ,因为发生了生成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25228777/
我有一个无所事事的盒子,已经运行了一段时间,今天,由于某种原因,当我尝试重新启动nginx时,得到了以下提示。 nginx: [emerg] host not found in upstream "w
我注意到,当我使用 ubuntu 命令“nginx”启动 nginx 并执行 systemctl status nginx 时。它表明 systemctl 已禁用。此外,如果我首先使用命令 syste
我的 nginx 配置如下: proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $re
周围有两个配置文件,/etc/nginx/conf.d/default.conf和 /etc/nginx/nginx.conf,但是启用了哪一个呢?我运行的是 CentOS6.4 和 nginx/1.
我的 Nginx 配置仅适用于根位置,所有其他位置都返回“Cannot GET {location}”,其中位置是域后地址的其余部分。 这是我的/etc/nginx/sites-enabled/def
我在 nginx 中为 node.js 服务器设置了反向代理。 server { listen 80; server_name sub.domain.tld; location
我的应用程序将在两个位置提供静态文件,一个是/my/path/project/static,另一个是/my/path/project/jsutils/static。 我很难让网络服务器在两个目录中查找
我的域名注册商的 DNS 访问我的服务器并获取 nginx 默认页面,因此配置正确 我复制了一个当前正在工作的 nginx 虚拟主机,更改了 server_name和 conf 文件的名称,仅此而已。
这个问题在这里已经有了答案: Can't login in to phpPgAdmin (2 个回答) 3年前关闭。 我在centos中遇到了phpPgAdmin登录的奇怪问题,我做了所有需要的事情
我要为PoC进行的操作是向来自动态后端服务器的网页添加href。使用“ subs_filter”可以很容易地添加href,但是我需要使用响应中嵌入的信息来构造href。 是否可以使用LUA处理来自pr
我有网站服务器,它有两个代理(鱿鱼,CF),它们使用不同的 header 来获取真实的 ip。 我猜 nginx 命令 set_real_ip_from ;real_ip_header X-Forwa
在控制台显示如下: Job for nginx.service failed because the control process exited witherror code. See "syste
我有一个问题,我怀疑是 NGINX 问题。基本上,当我尝试登录到我创建的网站时,出现以下错误…… 您要查找的页面暂时不可用。请稍后再试。 有没有人以前遇到过这个? 最佳答案 如果 NGINX 虚拟主机
这是我的 nginx 配置文件: server { listen 80; server_name localhost; location / {
在我的/etc/nginx/nginx.conf 文件中,我有配置。作为:- user nginx; worker_processes 1; error_log /var/log/nginx/e
有谁知道nginx支持软退出吗?这意味着它会一直运行直到所有连接都消失或超时(超过特定时间间隔)并且在此期间也不允许新连接吗? 例如: nginx stop nginx running (2 conn
有没有办法将 Nginx 配置为类似这样的直接服务器返回 (DSR) 负载平衡器: http://blog.haproxy.com/2011/07/29/layer-4-load-balancing-
我通过 apt-get 安装了 Nginx不久前在 Debian 上,我有几个网站在上面。现在我需要安装一些额外的模块,因为我不想搞砸任何事情,所以我想在执行之前仔细检查我的过程。希望这也能帮助其他不
我知道 Apache 的 pagespeed 模块可以使页面访问更快,所以,我想知道 Nginx 是否有等效的模块? 提前致谢! 最佳答案 https://github.com/pagespeed/n
如何将worker_rlimit_nofile设置为一个更大的数字,它可以是或建议最大为多少? 我正在尝试遵循以下建议: 大多数人遇到的第二个最大限制是 与您的操作系统有关。打开一个shell,su给
我是一名优秀的程序员,十分优秀!