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)

0
votes
1answer
8 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
745 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
1k views

Nginx with Passenger setup problems

I'm trying to setup nginx webserver with Passenger support for Ruby on Rails application on Ubuntu 10.04 (on sub URI). All went fine until I tried to access the server/application from the browser. ...
0
votes
1answer
637 views

Unicorn 3 throwing tons of errors (Rails 3.0.3, Unicorn 3.0)

I just tried to upgrade to Unicorn 3.0. I changed my Gemfile and did a bundle install. When restarting my Unicorn I got tons of errors beginning with: Unhandled listen loop exception ...
1
vote
1answer
107 views

How do I launch unicorn_rails as a startup script with rvm installed on my ubuntu 12.04 machine?

I have a rails app on my server. I have a script startup.sh which launches unicorn_rails and then nginx. In order to get my server to launch on system boot, I've added a line to call my startup ...
1
vote
3answers
2k views

Rails + Nginx + Unicorn multiple apps

I get the server where is currently installed two apps and i need to add another one, here is my configs. nginx.conf user www-data www-data; worker_processes 4; pid /var/run/nginx.pid; events { ...
2
votes
1answer
599 views

How to setup Proxy Cache with Nginx and Passenger

I use Nginx and Passenger for my rails application. I want to use proxy cache to cache my pages. However, every request go direct to my rails application. I don't know what wrong with my ...
0
votes
1answer
1k views

Rails 3 passenger nginx application spawner server error on Synology NAS

Question updated, please read UPD2. I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to ...
0
votes
1answer
2k views

Rails program is not being run on apache + passenger - only directory listing

I have successfully installed Phusion passenger + Apache 2 + Rails 3.1 program + git on a linux Debian 6. I ran passenger-install-apache2-module and followed the configuration instructions. I followed ...
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 ...
2
votes
1answer
680 views

Reverse Proxy (mod_rewrite) and Rails (absolute paths)

I have front end rails app, that reverse proxies to any of a number of backend rails apps depending on URL, for example http://www.my_host.com/app_one reverse proxies to ...
-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 ...
1
vote
2answers
144 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 ...
5
votes
1answer
2k views

Nginx & Passenger - failed (11: Resource temporarily unavailable) while connecting to upstream

I have an Nginx and Passenger setup that is proving problematic. At relatively low loads the server seems to get backed up and start churning results like this into the error.log: connect() to ...
0
votes
1answer
704 views

Apache proxying to Unicorn server times out, how to avoid?

I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends ...
1
vote
2answers
763 views

redmine gives 404 on static files, works fine elsewise

I have followed http://linux.mickgenie.com/how-to-install-redmine-with-cpanel/ to install redmine on my cpanel box. Got it up and running fine except that it doesn't load any static files (js, css, ...
3
votes
1answer
617 views

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set ...
0
votes
0answers
27 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 ...
1
vote
1answer
195 views

MySQL on a dedicated server vs increasing RAM on server with MySQL + Rails app

I'm running into scaling issues with a Rails app running on top of MySQL. I'm using memcached and have lots of indexes. I'm also starting to increase values for certain my.cnf settings like ...
-1
votes
0answers
51 views

I can't install Redmine on ubuntu 12.04

I never used ruby, can anybody explain me how to do this, i have experience with php/mysql, mongo_db but here i can't to really nothing. Maybe i need to start from 0 and delete all form server :/ I ...
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
18 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
0answers
111 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
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
1answer
33 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 ...
0
votes
1answer
770 views

Uninstall Ruby on Rails on CentOS 6

How can I remove Ruby on Rails and all associated gems? I tried yum remove ruby but get this response: yum remove ruby Loaded plugins: fastestmirror, security Setting up Remove Process No Match for ...
1
vote
2answers
1k views

Activesupport gem complains that it needs ruby 1.9.3 while it is already installed

I have problem installing paperclip gem in Ubuntu 12.04.2 LTS. Activesupport complains that it needs ruby 1.9.3 but I have it already installed. root@Ubuntu-1204-precise-32-minimal ...
1
vote
3answers
636 views

How should secret files be pushed to an EC2 (on AWS) Ruby on Rails application?

How should secret files be pushed to an EC2 Ruby on Rails application using amazon web services with their elastic beanstalk? I add the files to a git repository, and I push to github, but I want to ...
-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
66 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: ...
3
votes
1answer
527 views

Nginx + Unicorn

I am working on a migration from nginx + passenger to nginx + unicorn and I have reached a point where I am a bit stuck. When I attempt to view my test server, I get nothing but a 404 page. I am sure ...
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 ...
1
vote
0answers
52 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 ...
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
55 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
130 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 / ...
2
votes
1answer
758 views

Prevent mail being marked as spam

This is a canonical question about avoiding outgoing mail being classified as spam. I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail. I'm trying to ...
1
vote
1answer
791 views

How do i set a cronjob to use less CPU

I'm managing a server witch host several ruby on rails websites. I need a cron job for every website that does : send emails (notifications) create thumbnails Unfortunatly, every time the cron is ...
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
134 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' ...
5
votes
2answers
3k views

Passenger + nginx: application doesn't run in production mode

I'm using Passenger + Nginx to run a Rails app. If i use "rails_env development;" the application works fine. But if i run in production mode, i get "We're sorry, but something went wrong.". I did ...