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
2answers
898 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, ...
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
2answers
837 views

500 error with deploying rails application via apache2+passenger

I finally completed my own app, so the only work left is deploying the app. I'm using Ubuntu 10.04 and apache2(installed by apt-get), so I'm trying to deploy through passenger. I installed passenger ...
0
votes
2answers
179 views

Unexplained spike in web traffic

Question I am suspicious of an unexplained 1600% increase in traffic and massive slow-down that lasted about 10 minutes. I'm not sure if it was an attempted DoS attack, dictionary login attack, etc. ...
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 { ...
0
votes
2answers
843 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 ...
0
votes
2answers
309 views

Sqlite3-ruby installation issue

I'm trying to install sqlite3-ruby gem (or as it's now called, simply sqlite3) and whenever I run gem install sqlite3 it spits this out Building native extensions. This could take a ...
0
votes
0answers
22 views

Why does nginx+passenger not find some gems?

Why does nginx+passenger fail to start and print this into error.log? Could not find addressable-2.3.6 in any of the sources (Bundler::GemNotFound) ...
0
votes
0answers
28 views

Rails Passenger 403 forbidden

Unable to run my rails app. Have configured it using official documents. Have tried placing an index file in public folder. It works. Have tried to run rails app in production machine under ...
1
vote
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 ...
0
votes
1answer
26 views

Passenger Nginx Rails in debian 7 not working

I have installed Phusion passenger following official document : https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu Following Steps are performed: ...
4
votes
2answers
2k views

Firefox and Chrome keeps forcing HTTPS on Rails app using nginx/Passenger

I've got a really weird problem here where every time I try to browse my Rails app in non-SSL mode Chrome (v16) and Firefox (v7) keeps forcing my website to be served in HTTPS. My Rails application ...
0
votes
3answers
304 views

Installing MongoDb on EC2

I'm trying to deploy a Rails 3.2.3 with MondoDb app to EC2. I've chosen t2.micro instance. However, I found out that to use MonboDb I have to use at least m1.large - ...
2
votes
1answer
803 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
vote
2answers
29 views

Does a server use bandwidth when connecting to itself?

I have a dedicated server (CentOS 7) with Storm on Demand. I have a rails application running on the server served by nginx and unicorn. I'm using MariaDB on the same server. The rails app handles ...
0
votes
2answers
853 views

Default File Permissions (Passenger, Rails, Ubuntu Server)

I've deployed a Rails application that is using page caching and is run via Passenger on Ubuntu Server. Rails caching simply uses Ruby's File.open to write the cached files. Unfortunately these files ...
0
votes
1answer
548 views

nginx Permission denied error

I'm runnning nginx and unicorn to serve Rails application. Unicorn and Rails app works fine, but nginx can't open rails public directory with permission error and return 502 Bad Gateway. curl ...
0
votes
0answers
18 views

Run other applications alongside rails passenger app?

I recently created a rails app for my portfolio on an nginx server, I had to reinstall nginx to work with passenger. My portfolio works fine, but I can't seem to get another app to run alongside it ...
1
vote
1answer
113 views

Request timeout issue with nginx, unicorn and rails

I have an application in rails and it runs unicorn in production. There are some requests that take too long to process. I have configured the server to increase the timeout, so these request work ...
1
vote
1answer
67 views

How to redirect users to another site, except for whitelisted IP Addresses, during deployments/testing?

I have a Rails 4 app on a single Apache server on a Centos 6 box. At the moment I am doing manual deployments, which is working well and only take a few minutes. I have no issue with this. Trying to ...
0
votes
0answers
35 views

JRuby on rails with sidekiq deploy on Java production server

I'm a RoR guy and for some time I've been stumbling with some clients who just won't install ruby (or rails) on their machine. For this I turned to jruby. I used warbler to make a .war file and ...
0
votes
2answers
252 views

403 Forbidden response on a ubuntu + nginx + passenger server

I'm trying to deploy my Rails app on my Digital Ocean VPS but I'm getting a 403 when I visit the IP adres. This is the output of my errorlog: [ 2014-11-02 04:18:12.0511 23504/7f64e6a36780 ...
0
votes
1answer
401 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' ...
0
votes
2answers
82 views

SSL/HTTPS issue (no padlock icon) on Safari when using ngixn+unicorn

I have an application that runs on nginx+unicorn. This is how my server block looks like upstream rtdev{ # fail_timeout=0 means we always retry an upstream even if it failed # to return a good HTTP ...
-1
votes
2answers
87 views

nginx load balancing images not loading

Below is my load balancing configuration.my other servers contain nginx unicorn based application setup. When i tried above configuration the images are not loading. I have total three servers 1 ...
0
votes
0answers
38 views

EC2 Bad Gateway with torquebox and nginx

I set up an EC2 instance with torquebox and nginx. Torquebox starts without any errors, but I cannot access it at port 8080. Not even if I add a VPC rule to open that port. I get Gateway timed out if ...
4
votes
1answer
1k 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 ...
0
votes
0answers
172 views

Upgraded to Ruby version 2.1.2, passenger still on 1.9.3

I installed Ruby 2.1.2 using RVM, and changed the nginx.conf file with the appropriate passenger_ruby and passenger_root paths, but my Rails application is still running on Ruby 1.9.3. Why is my Rails ...
0
votes
1answer
100 views

Does rails 4 asset_path helper uses asset.prefix?

I configured my rails app to use a different asset prefix, by editing the file conf/application.rb. +config.assets.prefix = '/wrapper/thing' It works for asset pipeline but when I try to use it on ...
0
votes
0answers
39 views

Execute a script while boot up in RHEL7

One of my server reboots every sunday and monday morning, whenever the server is up I need to do a service restart. Actually I call a script to execute itself (everytime manually). What I want to ...
1
vote
0answers
117 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 ...
2
votes
3answers
6k views

How to execute a command on the server with Capistrano?

I have a very simple task called update_feeds: desc "Update feeds" task :update_feeds do run "cd #{release_path}" run "script/console production" run "FeedEntry.update_all" end Whenever I try ...
0
votes
0answers
35 views

Rails app deploy on openshift

I'm trying to deploy Rails application no openshift (rails-2.0 + postrgesql). I think automatic deploy on git push didn't execute rake task db:setup and db:migrate, because I see ...
0
votes
2answers
338 views

State of the art deploying Rails applications with git

I'm looking to group together the information on the current best practices for deploying a Rails application on a server I run (rather than, say, Heroku). The application is developed by multiple ...
0
votes
1answer
399 views

Redirect to HTTPS from my Amazon Elastic Load Balancer

I have a rails app on 2 EC2 Instances running nginx behind an Amazon Elastic Load Balancer. I'd like to force HTTPS, which was working fine before I added in the Load Balancer. Now I can't quite ...
0
votes
1answer
66 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...
0
votes
0answers
83 views

I Cannot Connect to PostgreSQL After Installing the Server App (OSX Mavericks)

(This is also posted in Ask Different.) I am running the latest version of Mavericks 10.9.5 on my Mac Mini Server. Before the upgrade to the latest version of the Server App 3.2.1 I was able to ...
5
votes
3answers
696 views

Running Rails3 with force_ssl = true, with nginx, on AWS EC2 with SSL terminated by an ELB, setting up health check

I want to run my entire Rails app with SSL, so I thought to use Rails' global force_ssl config option, which works great, except that the ELB's healthchecker will never work because if I set it to ...
1
vote
1answer
2k views

“768 worker_connections are not enough” error after a fresh installation of nginx and ROR

I have a fresh installation of nginx and ruby on rails. But it gives me a '500 Internal Server Error' while testing. The error.log for my app has the following: 2014/05/01 17:27:15 [alert] 1423#0: ...
0
votes
1answer
97 views

Rails - Nginx not caching images

I've got a VPS where I'm running my Rails app using Nginx and Unicorn. I was successful to add expires headers to JS and CSS files, however I cannot force Nginx to cache images as well (according to ...
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. ...
2
votes
1answer
991 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 ...
1
vote
1answer
751 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 ...
0
votes
0answers
42 views

Is it necessary to use Nginx when deploy a Rails API ONLY app?

Currently I've already read a lot tutorials teaching about Rails App deployment, almost every one of them use Nginx or other alternatives like Apache to serve static pages. Also in this QA Why do we ...
-1
votes
1answer
136 views

Striving to make a RoR app (passenger, nginx) work on EC2

I've installed RoR, ruby, passenger and nginx on EC2 Ubuntu instance. Now I'm striving to make it work and be accessible only for the ec2's address which looks this ...
0
votes
0answers
99 views

Rails Permission Error on Sub-URI with Passenger, Apache, & Centos

I have a rails 4 application installed on a machine running centos 6. I have Apache serving up another application and I'm try to mount the rails application at a sub-uri. To aid deployment I've ...
0
votes
0answers
46 views

Rails environment variables at EC2

I have a Rails app which I want to deploy to EC2 instance. I know how to set the environment variables at Heroku. But how to do that at AWS EC2? I need that because I have to connect to MongoDb and ...
0
votes
0answers
48 views

Rails app: unable to get nginx to serve files directly, even though trying to use X-Accel-Redirect

I have a Rails application, running with web server nginx and application server passenger. In this case, I've compiled them into one daemon. The application includes some downloadable content ...
-1
votes
1answer
99 views

how to mitigate hackers trying to find an exploit? [closed]

I have a Rails application running in a webserver inside my company, and now and then I see this messages on log: I, [2014-09-04T06:15:33.057513 #37024] INFO -- : Started GET ...
1
vote
3answers
701 views

Proper Passenger + Apache Permissions to fix error “No such file or directory - config/environment.rb”

I am having a problem with Passenger not being able to start due to an apparently common issue in which Passenger claims: No such file or directory - config/environment.rb. I have searched the web ...