vyacheslav@fastdevelop:~$ cat .rvm/bin/start_thin
#!/usr/bin/env bash
if
[[ -s "/home/vyacheslav/.rvm/gems/ruby-2.1.2/environment" ]]
then
source "/home/vyacheslav/.rvm/gems/ruby-2.1.2/environment"
exec thin "$@"
else
echo "ERROR: Missing RVM environment file: '/home/vyacheslav/.rvm/gems/ruby-2.1.2/environment'" >&2
exit 1
fi
2014/05/25 12:03:56 [crit] 2477#0: *5 connect() to unix:/tmp/thin.2.sock failed (2: No such file or directory) while connecting to upstream, client: 176.59.46.83, server: [domain], request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/thin.2.sock:/", host: "[domain]"
2014/05/25 12:03:56 [crit] 2477#0: *5 connect() to unix:/tmp/thin.1.sock failed (2: No such file or directory) while connecting to upstream, client: 176.59.46.83, server: [domain], request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/thin.1.sock:/", host: "[domain]"
2014/05/25 12:03:56 [crit] 2477#0: *5 connect() to unix:/tmp/thin.0.sock failed (2: No such file or directory) while connecting to upstream, client: 176.59.46.83, server: [domain], request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/thin.0.sock:/", host: "[domain]"
---
chdir: "/home/vyacheslav/www/ordadmsh"
environment: development
address: 0.0.0.0
port: 5000
timeout: 30
log: "/home/vyacheslav/www/ordadmsh/log/thin.log"
pid: tmp/pids/thin.pid
max_conns: 128
max_persistent_conns: 100
require: []
wait: 30
threadpool_size: 20
servers: 3
daemonize: true
#!/bin/sh
### BEGIN INIT INFO
# Provides: thin
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: thin initscript
# Description: thin
### END INIT INFO
# Original author: Forrest Robertson
# Do NOT "set -e"
#DAEMON=/home/vyacheslav/.rvm/gems/ruby-2.1.2/bin/thin
DAEMON=/etc/init.d/thin
SCRIPT_NAME=/etc/init.d/thin
CONFIG_PATH=/etc/thin
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
case "$1" in
start)
$DAEMON start --all $CONFIG_PATH
;;
stop)
$DAEMON stop --all $CONFIG_PATH
;;
restart)
$DAEMON restart --all $CONFIG_PATH
;;
*)
echo "Usage: $SCRIPT_NAME {start|stop|restart}" >&2
exit 3
;;
esac
:
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##
#include /etc/nginx/naxsi_core.rules;
##
# nginx-passenger config
##
# Uncomment it if you installed nginx-passenger
##
#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;
upstream thin_cluster {
server unix:/tmp/thin.0.sock;
server unix:/tmp/thin.1.sock;
server unix:/tmp/thin.2.sock;
}
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
Мб нужно запускать из папки проекта?