0
votes
1answer
42 views

Configure server for gitlab [closed]

I have a server where VestaCP installed (apache2 is back-end, nginx is front-end). Also, I successfully installed ruby, gitlab shell and gitlab. When I type sudo -u git -H bundle exec rake ...
1
vote
0answers
71 views

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through ...
0
votes
0answers
18 views

Tell apt-get install to ignore a dependency [duplicate]

I have used Phusion Passenger's Ubuntu repositories to install nginx-extras and passenger on a clean Ubuntu14.04 server, which already had Ruby2.1.1 installed. It worked perfectly. This is how ...
0
votes
1answer
105 views

Trouble setting up Ruby with Nginx on CentOS 6.5

Following the instructions here: https://www.digitalocean.com/community/articles/how-to-deploy-rails-apps-using-passenger-with-nginx-on-centos-6-5 I get to the point of "Use vim /etc/init.d/nginx to ...
1
vote
0answers
54 views

Can't deploy Ruby 2, Rails 4 app to Linode

I have a Rails 4 app and I want to deploy it to my Linode and I'm struggling a lot to get this working. I followed all the basic instructions from the Linode guides, also, installed all the ...
0
votes
1answer
276 views

Nginx, Passenger, Rails serving static files but not running app

I've seen other similar questions but none with satisfactory answers, so here goes. I've installed Ruby, Rails, Nginx and Passenger and tried to configure it to all work together. Here is the ...
3
votes
1answer
145 views

Who should own the god process?

I have a stack running on ubuntu consisting of a Rack application written in Sinatra and GrapeAPI. The application stack includes Redis, Postgres, Nginx and unicorn. I want to use god to handle ...
1
vote
2answers
1k views

GitLab & nginx: 502

I've installed GitLab, following the given official instruction, but I'm getting 502 error when trying to use it. Nginx log entry: *30 upstream prematurely closed connection while reading response ...
0
votes
1answer
127 views

Unicorn Shared Socket

Is it possible to have a unix socket across a network? Is it possible to have multiple application servers running unicorn use that same shared socket? The setup I'd like to achieve would look like: ...
1
vote
0answers
265 views

nginx proxy_pass to different backends based on location / passing rewrited url

What the quickest and cleanest solution if you want to proxy URL request to two different backends via proxypass based on location. location /app1/ { alias /var/www/ruby/public; ...
1
vote
2answers
123 views

Ruby Application Webroot Location

I have inherited a ruby application at work and I am fairly new to ruby hosting environments. The application is hosted on a linux server but I am unable to find where the webroot is. I have looked ...
1
vote
0answers
186 views

Tuning Ruby + Rails + Nginx + Passenger [closed]

I have an app that is responding pretty slowly. Most of the response time is Ruby, (800 ms per request!) however the load on the server is pretty low. It's a VPS with 4 cores and 4 gigs of ram, and ...
2
votes
1answer
902 views

Configuring Nginx, Thin and Rails. Can access static pages but not dynamic

I have set up nginx (nginx.conf below) and thin. Both nginx and thin (2 servers) are running (I have checked they are running). I can access a static page in the rails public directory such as ...
0
votes
1answer
270 views

Nginx - Passenger - Rails 3.2 not responding

I am struggeling to get my rails 3.2 app running on a nginx - passenger - ruby 1.9.3 setup. here is what I already did: installed passenger gem installed rvmsudo passenger-install-nginx-module I ...
0
votes
1answer
164 views

Ruby Passeger + Nginx or lighthttpi + fgci for shared hosting

I have set up a passenger + nginx setup and I plan to offer a free non-commercial hosting (or in fact on the fly deployment) for rack-based frameworks (e.g. camping, sinatra). I am facing an "issue" ...
-1
votes
1answer
251 views

Security best practices for Nginx + passenger multi hosting [closed]

I am planning to offer a free multi-hosting for a rack-based ruby framework using nginx and passenger to serve these apps. I am working on several options and I would like to ask some advice on the ...
1
vote
1answer
656 views

How to make uploading large (more than 1MB) files work with nginx, rails and uploadify

I have problem with my production nginx configuration (on my development machine with mongrel everything works). My environment is: nginx as proxy, rainbows as backend running rails 3.1 application ...
1
vote
2answers
392 views

Apache & Nginx on Ubuntu 10.10

I'm running Ubuntu 10.10 with three apache virtual hosts. I just followed this tutorial to set up Rails 3 on Ubuntu using PAssenger and nginx. Everything is running fine except rails/nginx. When I ...
2
votes
1answer
252 views

Unable to set nginx to serve my staging website

I'm having some troubles setting up nginx to serve my staging website. What I did is change the server_name but for some reasons it just doesn't work. The url scheme is "domain.foo" is production, ...
1
vote
0answers
452 views

How are these AB Benchmarks for a ruby/unicorn/nginx/ app running on ec2?

I am preparing to go live with an app, and was wondering if someone can give me some insight on my benchmarks. How do they compare, what system level tweaks can I make to improve them etc. My setup ...
0
votes
1answer
1k views

Ruby via FastCGI and NGiNX?

I have NGiNX setup, and would like to be able to run sites I create in Ruby. However my server is pretty fail, only like 250mb memory, probably less, so instead of having to run each Ruby site with ...
3
votes
2answers
2k views

Nginx redirect loop when using proxy_pass over SSL

We are using Nginx as a load balancer for our Rails app. Since we're are moving to a multicloud hosting solution, we want our load balancer to start using SSL for every connection when it's forwarding ...
0
votes
2answers
170 views

Do I need to install nginx during the passenger installation

I am trying to install Passenger for Nginx: $ gem install passenger $ passenger-install-nginx-module During the installation Passenger want to compile and install Nginx. Is it necessary step? I ...
2
votes
1answer
876 views

Monitoring slow nginx/unicorn requests

I'm currently using Nginx to proxy requests to a Unicorn server running a Sinatra application. The application only has a couple of routes defined, those of which make fairly simple (non costly) ...
1
vote
1answer
390 views

Using UNIX sockets with nginx

I would like to clarify some doubts I have about using nginx to proxy requests over a cluster of thin servers (http://code.macournoyer.com/thin/). I've read many blog posts about using UNIX sockets ...
0
votes
3answers
2k views

Rails 3 shows 404 error instead of index.html (nginx + unicorn)

I have an index.html in public/ that should be loading by default but instead I get a 404 error when I try to access http://example.com/ The page you were looking for doesn't exist. You may ...
0
votes
1answer
525 views

can't stop or restart the thin gem on ubuntu 10.04

I get the below error whenever I try to stop or restart the thin gem on Ubuntu 10.04. Any fix for this? Can't stop process, no PID found in tmp/pids/thin.pid
2
votes
1answer
1k views

Cannot install passenger with Nginx

I have a rack application that I want to migrate from Ruby 1.8.7 + Apache + passenger to Ruby 1.9.1 + Nginx + passenger. I have made up the following script for a quick install all in one, and it ...
0
votes
2answers
713 views

Ruby: Does it make sense to use REE with Unicorn?

I am trying to figure out the optimal server stack for running Rails. As of now, nginx + unicorn seems to be the best approach. However, some folks have suggested running the REE interpreter instead ...
0
votes
5answers
2k views

Multiple rack apps on nginx + passenger, one as root, the other not…config

So I've got two apps I want to run on a server. One app I would like to be the "default" app--that is, all URLs should be sent this app by default, except for a certain path, lets call it /foo: ...
4
votes
2answers
2k views

How to setup Nginx with Varnish

I'd like to see how to configure Nginx and Varnish. I'm running several PHP sites and Rack-Sinatra sites as virtual hosts across two IP's. I'd like to prevent Nginx from having to serve static ...
1
vote
2answers
6k views

Passenger + Nginx => 502 Bad Gateway

I'm trying to run a relatively simple rails app (http:// www.enkiblog.com/) and it kinda works. The comments and the admin interface only work when I use "script/ server -e production" and connect to ...