Ruby on Rails is an open-source, MVC web development framework written in Ruby, optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

learn more… | top users | synonyms (1)

1
vote
1answer
14 views

Restore a versioned S3 bucket to a particular point in time

Let's say I've got S3 versioning enabled for my bucket: http://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html Then, let's say someone (for example, junior employee) messes up the S3 bucket ...
1
vote
1answer
27 views

NGINX: Route a call to localhost on a custom port to an external server

I have a problem with my rails app. An API of the app is looking for my forum (forum.example.com) on localhost on port 8082. I need to create a route that redirect every connection to 127.0.0.1:8082 ...
-1
votes
0answers
8 views

How to implement custom domain(Godaddy)

My Ruby on Rails web application has been deployed using a third party deployment service(Cloud66) and has a specific custom url (.cloud66.). I have bought a custom url using Godaddy which I want to ...
1
vote
0answers
15 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
0answers
29 views

Simple Rails 4 ActionController::Live example not working with Apache + Passenger

I am attempting to get ready to move our environment to Rails 4 and working through all the issues. Regretfully we are currently on Centos 5.5 so there were some hurdles to jump through just to get ...
0
votes
0answers
56 views

Why does Ruby on Rails run slowly on VMWare

We are experiencing slow performance of our Ruby on Rails application on a hosted server. Neither us nor our hosting provider have been able to accurately diagnose the reason for this. Indicators of ...
0
votes
0answers
21 views

Can't connect to Rails app after restarting Thin server

I have a rails app which works fine on localhost and used to work fine on my vps but after restarting the Thin server I got the same message on all browsers that they couldn't connect to the server. ...
0
votes
1answer
38 views

how to make webrick server accessible on the web on windows server 2008

This is a nuub question (i'm more of a programmer given an admin task right now). I have a rails application that works just fine on a remote windows server 2008 machine (it's rails 2.3.5, and I run ...
0
votes
0answers
118 views

Creating a docker container from a capistrano deploy

I'm having a bit of a difficult time understanding how I can leverage my existing infrastructure code with Docker. I have a Ruby on Rails app that uses capistrano to push out deployments. I want to ...
0
votes
1answer
34 views

Rails 4 app + nginx1.4.4 + passenger4.0.37 on a headless Ubuntu12.x server running on a VM on my local machine

At the moment, it gives me a disapointing blank page. No 500, no 404, no errors on the nginx log file, just a snowstorm of interrogations. And its been hours of googling without success. So if anyone ...
-1
votes
2answers
23 views

Nginx: Changing user [closed]

I have root and deployer users in my ubuntu 13.10. I also have nginx, unicorn installed with Rails 4 application. I'm deploying my application using capistrano 3. Problem: When I prepare a env for ...
0
votes
1answer
69 views

Blocking/redirecting port 3000 with Nginx and Ruby On Rails (thin server)

I am setting up a server now that uses Ruby on Rails with the Thin server. I have set up Nginx to redirect all of my http://mysite.com to https://mysite.com(with ssl). I want all network traffic to ...
3
votes
1answer
233 views

What does this log mean?

While my application is running (with a lot of traffic), I see this in error log but I dont even understand what it is about. I guess it's optimizing some configuration but I need a more formal ...
0
votes
0answers
8 views

Boost up performance of Rails application on Ubuntu [duplicate]

I'm trying to configure my ubuntu server to serve as many as possible concurrent connection. My application is built on RoR and it takes about 30ms to serve a request in average. I also use fushion ...
0
votes
0answers
25 views

install redmine in shared apache server

I'm trying to install Redmine in a shared apache server. This means, I cant make the redmine/public folder my document root. My server is called server1, so I have some html and php pages at: ...
1
vote
0answers
54 views

Nginx Returning 504 Error

I'm getting a 504 error from Nginx on my Ubuntu server where I'm running Rails using Unicorn. When I look in the Nginx error.log.1, I see: 2014/01/21 18:06:02 [error] 698#0: *2 connect() failed ...
2
votes
1answer
114 views

Redmine won't start after move

I met trouble with redmine(or ruby configuration) when move from one server to another redmine@dirty:~/www$ ruby script/rails server webrick -e production ...
0
votes
0answers
10 views

How to redirect to a Rails app's sub directory when accessed with a certain domain without the subdirectory showing in the url [duplicate]

Not sure if this should be a stackoverflow question but here goes, I want http://bbbb.com to point to http://aaaa.com/foo/bar in my Rails app, My apache setup currently is as follows ...
2
votes
1answer
46 views

Website offline message when server is unreachable

Is there a way to display a website offline/maintenance message to users who try and visit a website where the physical server is offline. The scenario: We have multiple client websites running at ...
0
votes
0answers
27 views

Serve Rails app With Apache2/Passenger with no domain name

I have VPS, I am already serving a few PHP sites with Apache2. I now want to deploy a Rails app. I have set up the virtualhost in sites-available and enabled it with a2ensite. It looks like this ...
0
votes
0answers
32 views

How can I determine why I am getting error 500?

My setup is rails 3.2, with ruby 1.9.3 running on passenger and apache (production environment). I Recently used "mod_rewrite" to set up redirection for http -> https requests, and all went smoothly. ...
1
vote
2answers
56 views

Why server writes much more than reading the disk

I'm running one Ruby on Rails application, I use Passenger Nginx, Ruby on Rails 3.2, search gem Sunspot (which uses Solr as its search engine). My application works ok with around 6K active users but ...
0
votes
1answer
69 views

When does Linux run out of memory? [duplicate]

I'm trying to establish why a process keeps unexpectedly stopping, and one possibility is that the server is running out of memory, but I'm not sure I understand memory and Linux properly. Take the ...
1
vote
0answers
134 views

How to setup cross domain rules in discourse?

So i use the following page to gather information from the user and send it to forums.awake-gaming.com/posts for discourse to make a post for me . Url of page : awake-gaming.com/join-us.html Url, ...
0
votes
0answers
16 views

Configure nginx+passenger rails+phpmyadmin [duplicate]

I need to setup all routes to my rails server, except one: phpmyadmin path, i try so, my configuration file code: server { listen 80; server_name localhost; location / ...
1
vote
0answers
67 views

Rails app (Redmine) on Phusion Passenger is very slow on first request

I've recently deployed a Redmine app (production env) on an AWS server and every time I go to the page after a delay (10+ minues), it take a painfully long time for the page to load. After googling ...
0
votes
0answers
140 views

execjs error when running Ruby on Rails for the first time - “bundle install” and “rake about” show no issues as far as I see

I have recently installed Ruby on Rails on my Centos server as practice for installing in a production environment. In my Gemfile I have the following uncommented lines: source 'https://rubygems.org' ...
1
vote
2answers
72 views

Explain load-balancing with Nginx like I'm five

I've found plenty of DIY posts and tutorials on how to configure Nginx as a load-balancer using upstream server: upstream backend { ip_hash; server 1.2.3.4; server 1.2.3.5; server 1.2.3.6; } ...
0
votes
0answers
33 views

Installation of JavaScript runtime on old Red Hat server

I've been tasked with some infrastructure updates related to upgrading to Rails 3 on our development server, which is running: Red Hat Enterprise Linux AS release 4 (Nahant Update 5) RPM version ...
1
vote
2answers
65 views

ruby-on-rails app using webbrick server slow on some machines

I have a fairly simple ruby-on-rails app developed on mac, that was put into production on a debian web server. The web app uses the default webbrick server provided to run the app. The app runs ...
1
vote
0answers
69 views

nginx configuration for rails subdir deployment

I'm having quite a bit of trouble configuring nginx to serve my Rails app's static files; I mean all the files in the app's public/ folder, not just the files in Rails' asset pipeline. It seems I'm ...
1
vote
0answers
266 views

bundler: command not found: unicorn_rails

While restarting gitlab I get this: Starting both the GitLab Unicorn and Sidekiqbundler: command not found: unicorn_rails Install missing gem executables with `bundle install I installed gitlab ...
0
votes
1answer
113 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 ...
0
votes
1answer
57 views

PhusionPassenger::UnknownError when visiting canvas

So I'm creating a canvas LMS server however I'm running into errors left and right. I recently got a forbidden error (which I was able to solve thanks to this great community). Now, server errors ...
0
votes
1answer
42 views

apache mod_rewrite not working with mod proxy

I have a Rails 2.3.18 application running on http://0.0.0.0:3004/, it is running with Passenger module, and is deploying on Apache server with proxy module using the following configuration: ...
1
vote
0answers
87 views

How do I increase the logging level for Puma?

Currently I am only getting ActiveRecord and view-rendering output in my Rails application log file, since I switched to Puma from WEBrick. I haven't been able to find where I can modify the output ...
0
votes
1answer
80 views

Does Nginx require an index file for the root directory?

I'm developing a Rails application, and I'm now making the production environment default. I created the directive server { listen 127.0.0.1:80; server_name example.com; root ...
1
vote
2answers
147 views

chef-server-webui session not working when access from external IP address

I have installed chef-server on an Ubuntu 12.10 system using the official .deb package for that release. After the installation had finished I run chef-server-ctl test Which reported success, 0 ...
0
votes
2answers
191 views

Can't run webrick on port 80

I try to figure out how to point a.b.c.d:3000 to my domain name. Here, a.b.c.d is my IP address. As per this post: How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port I get the ...
6
votes
2answers
165 views

Are there any features in Linux that are essential for hosting Ruby on Rails?

I'm on a project where we're going to be hosting a Ruby on Rails app on a Linux server we own. Are all flavors of Linux equally capable of hosting Rails apps? If not, what features are present in some ...
0
votes
1answer
57 views

Phusion Passenger slow rendering JSON response [closed]

I have a Rails 4 application that returns a large amount of data that is rendered as JSON (23K records/2.8MB document). Testing this call on my laptop using the WEBrick server, the request completes ...
0
votes
1answer
66 views

Adding a transaction ID to ruby-on-rails logs

We have a RoR app (rails version 3.2.15 right now). As it has been getting busier, the log-files it's producing are becoming less and less useful for troubleshooting. When they come in like this, it's ...
0
votes
0answers
6 views

File Checking Rewriting and Handing off to Rails

I have a requirement for Nginx to serve a file if it exists or hand off to a Rails controller. The URI is data?x=X&y=Y&z=Z which at the moment goes direct to a Rails controller, sends the file ...
1
vote
3answers
186 views

How to start Rails from a shell script on Debian?

I don't really have any need to mess with passenger or capistrano at the moment. I simply want to run rails on boot on port 3000. I've attempted to replicate this tutorial for node as much as I could ...
0
votes
1answer
89 views

Rails application keeps timing out when attempting to connect to Postgresql DB

I'm hosting a postgresql database on a small windows azure Ubuntu 13.04 VM with a default postgresql.conf. I have a Rails application running on a medium windows azure Ubuntu 13.04 VM. When accessing ...
2
votes
1answer
44 views

What happens when Phusion PassengerMaxPoolSize is reached?

The subject of my post pretty much sums up my question: What happens when PassengerMaxPoolSize is reached? For Example: PassengerMaxPoolSize is configured to 40 based off our system specs What ...
0
votes
1answer
34 views

Apache sites file without domain name [closed]

I can't seem to find this on google. I'm trying to put up a quick test site using EC2 and Elastic IP but I'm getting stuck at how to edit the Apache sites file so that I can view the site. It's ...
0
votes
0answers
24 views

Phusion Passenger Apache vHost to Sub Directory

I have a rails app that we're trying to migrate t our servers for DNS purposes. The app generates a user url ex ourapp.com/user1. Say user one wants to point user1.com to their respective ...
2
votes
2answers
375 views

gitlab authentication using HTTP_REMOTE_USER environment variable

we have discovered gitlab, and I would like to integrate it in our global authentication process, which relies on apache HTTP_REMOTE_USER environment variable. I have seen very little documentation ...
0
votes
0answers
33 views

How to config apache location to proxy multiple thin instances?

We have a typical Apache web server serving a blog and some static web pages: http://www.example.com Recently, we added some API built by Rails such that our mobile app can access announcements via ...