need assistance.
非常好。
你有没有 precompile assets?有的话,需要清理 clean.
再往右,仔细找
正是我想要的。感谢
第二个错误,提示文件不存在,检查是否存在,如果存在检查权限
你先看看有么有这个 repo
这个功能不是一只就有么
不用 ubuntu,用 fc。
顶之
欢迎围观 ---> __ --->
#14 楼 @musicflow 你好,我已经加你了。
#10 楼 @musicflow 哇,你是乐维的,乐维非常不错!!! 或许我们可以合作 XD
= =|||请稍等,我把之前的信息全删了。
thin
楼上所有的筒子们. 我之前用 passenger standalone 模式跑,占这么多内存. 我今天换成了非 standalone,暂且叫 integrated 模式吧。请看!:
[hlcfan@li414-74 chatpro]$ free -m
total used free shared buffers cached
Mem: 494 241 253 0 15 97
-/+ buffers/cache: 128 366
Swap: 511 0 511
一下子就一半了!求解释!
ls -lh
[hlcfan@li414-74 chatpro]$ ls -lh
total 1.8M
drwxrwxr-x 8 hlcfan hlcfan 4.0K Apr 21 06:04 app
drwxrwxr-x 5 hlcfan hlcfan 4.0K Apr 21 06:04 config
-rw-rw-r-- 1 hlcfan hlcfan 157 Apr 21 06:04 config.ru
drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 06:04 db
drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 06:04 doc
-rw-rw-r-- 1 hlcfan hlcfan 10 Apr 25 03:57 dump.rdb
-rw-rw-r-- 1 hlcfan hlcfan 1.7K Apr 21 08:16 Gemfile
-rw-rw-r-- 1 hlcfan hlcfan 4.6K Apr 23 09:11 Gemfile.lock
drwxrwxr-x 4 hlcfan hlcfan 4.0K Apr 21 06:04 lib
drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 07:11 log
-rw------- 1 hlcfan hlcfan 1.7M Apr 25 04:02 nohup.out
drwxrwxr-x 3 hlcfan hlcfan 4.0K Apr 25 03:26 public
-rw-rw-r-- 1 hlcfan hlcfan 272 Apr 21 06:04 Rakefile
-rw-rw-r-- 1 hlcfan hlcfan 41 Apr 21 06:04 README.rdoc
drwxrwxr-x 2 hlcfan hlcfan 4.0K Apr 21 06:04 script
-rwxrwxr-x 1 hlcfan hlcfan 134 Apr 22 07:00 start.sh
drwxrwxr-x 7 hlcfan hlcfan 4.0K Apr 21 06:04 test
drwxrwxr-x 6 hlcfan hlcfan 4.0K Apr 21 07:00 tmp
drwxrwxr-x 5 hlcfan hlcfan 4.0K Apr 21 07:07 vendor
Nginx Config
#user nobody;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
http {
passenger_root /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby;
#passenger_default_group root;
#passenger_default_user root;
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
#sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
server {
listen 80;
server_name 106.187.94.74;
root /home/hlcfan/chatpro/public;
passenger_enabled on;
rails_env production;
#charset koi8-r;
#access_log logs/host.access.log main;
#location / {
# root html;
# index index.html index.htm;
#}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
#some commented config
}
}
@huacnlee 华顺,求帮忙。