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
votes
0answers
24 views

systemd for executing a script automatically while reboot

First of all, I am a student on systemd (just started learning how it works) side in RHEL 7. My requirement: On a scenario of server reboot (OS-RHEL 7), a script should be executed automatically, ...
0
votes
0answers
25 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
15 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
21 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 ...
0
votes
0answers
10 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
0answers
35 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 ...
0
votes
1answer
21 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
19 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
1answer
57 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 ...
-1
votes
0answers
16 views

Rails on EC2 - what's the sweet-spot? [duplicate]

I'm running a Rails app that mainly does CRUD operations and have about 50-100 concurrent connections. My current setup is to have 4 thin servers running behind nginx on a t2.medium instance. But I ...
0
votes
0answers
21 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 ...
0
votes
0answers
195 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
68 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 ...
-1
votes
1answer
63 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
26 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
2answers
73 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 - ...
0
votes
0answers
17 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
80 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 ...
0
votes
0answers
48 views

Host multiple rails applications over subfolder using nginx+unicorn

I would like to host multiple rails applications using nginx + unicorn which is currently being served using apache + passenger with railsbaseuri. The only reason is being apache needs to be reloaded ...
1
vote
1answer
34 views

Can't access ports assigned to Rails 4.2, but 4.04 works fine

I have Ruby 2.1.2 installed and Rails 4.2. Bundle install runs without error. I can do a Rails C without error. Rails s -p3004 launches with webrick or thin without error When I browse to ...
1
vote
0answers
39 views

Rails json Request are slow

I am developing an angularjs Application with Rails as Backend. It is hosted by DigitalOccean the smallest Server. On my Production System its only me testing right now. The problem is the requests ...
0
votes
0answers
41 views

`rake db:migrate RAILS_ENV=production` gives error

When I run the command: rake db:migrate RAILS_ENV=production I get the following error: rake aborted! PG::ConnectionBad: could not connect to server: Connection refused Is the server running ...
-1
votes
1answer
42 views

After few days of server running fine with nginx it start throwing 499 and 502

Nginx start throwing 499 and 502 after running fine for few days, website is a rails app using thin as the webserver. Restarting the Nginx doent not seem to help. Below the the Nginx config Nginx ...
0
votes
0answers
24 views

Crond stopped sending e-mails for no apparent reason [duplicate]

I have a cron job that I want to run just once a day (executes a rake task), but while I'm testing it I have it set to run every 5 minutes. It was running perfectly fine this morning and sending me ...
0
votes
1answer
51 views

What's the current, “correct” way to bundle gems for a Rails app with system-wide RVM-installed Ruby?

I got ruby installed system-wide by doing: \curl -sSL https://get.rvm.io | sudo bash -s stable and then: sudo /usr/local/rvm/bin/rvm install 2.0.0 I'm still not positive that was actually ...
0
votes
1answer
153 views

Nginx 403 forbidden error after moving wordpress files to a different location

I had Wordpress working inside a Rails application using fastcgi. Now I'm moving everything around so that it can be accessed at /blog in production. I moved the wordpress files and updated the nginx ...
0
votes
1answer
132 views

mysql.sock error when deploying with AWS Ubuntu and RDS

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Rails.root: /opt/deployment.myproject/releases/20140805050704 I've spent the better part of 3 days trying to ...
0
votes
0answers
23 views

unicorn capistrano not starting

Hi I am deploying my rails application in VPS and I have followed https://coderwall.com/p/yz8cha this blog and the problem is nginx show only 500 error page , I doubt of that my unicorn is not starts ...
1
vote
1answer
240 views

How to tell how Apache might be broken and preventing the ruby passenger module from installing

I'm installing a ruby on rails application to a Ubuntu 14.04 server. As part of it, I need to install the passenger module for Apache. When I go to run the "passenger-install-apache2-module" I receive ...
0
votes
0answers
40 views

Rails/Plain HTML living on same server using Passenger and Apache

I'm trying to get the following to work: www.server.com: go to main directory, serve up plain html www.server.com/w: go to /w directory, serve up a php-laden wiki www.server.com/r: go to /r ...
1
vote
0answers
29 views

Splitting an application across AWS and Heroku

My application is currently 100% managed by Heroku. A few endpoints on the application depend on very slow external resources. Heroku occasionally kills these requests if they hit 30 seconds.[1] ...
0
votes
1answer
61 views

404 not found error on Rails app with Helicon Zoo on Windows Server

I'm trying to run Rails App with Helicon Zoo on Windows Server 2008 R2. For the test case I used Redmine 2.3 that goes with the Helicon Zoo module. Redmine has been installed successful, but it is ...
1
vote
1answer
94 views

File descriptor limit in nginx/Passenger app

We're running a Rails app in Passenger 4.0.45 and nginx 1.6.0 (installed by Passenger installer) running on Ubuntu 14.04. Under heavy load Passenger restarts all of the application processes. After ...
0
votes
2answers
163 views

Auto start Rails project upon boot (ubuntu)

I've been searching on this for 2 days. I tried three ways: 1.Add some file in init.d Ok I have to admit I dun know how to see error log , seems promising but doesn't work 2.Try start thin server ...
0
votes
0answers
66 views

How To Get My Rails Phusion Apache App To Use The Correct DocumentRoot

enter code hereOk this is obviously a rookie mistake of some description but I have followed this to the letter and cannot get my rails app public directory to be my document root. the tutorial says ...
0
votes
0answers
29 views

can download zip file from one computer but not another

I've got a rails 4.0.5 app that creates a zip file and then sends it to the user via send_file. Per the api docs, "disposition" is "attachment" by default, the environment is configured to use ...
0
votes
0answers
49 views

Why postgres 9.3 table keeps losing the primary key and indexes?

In pg 9.3 database, table engine_configs keeps losing primary key (id) and indexes. Here is the table: For the table shown above, we just added the primary key again and it is showing integer in ...
0
votes
0answers
21 views

Uninitialized constant Grack::Bundle

Trying to setup Gitlab. I've cloned the repository, but upon attempting to start the application server I get this error: uninitialized constant Grack::Bundle The problem appears to be this gem: ...
3
votes
1answer
181 views

Pre-populate vagrant synced folder contents

I'm currently building an rather complicated server stack (a ruby on rails app) that I want developers to be able to work on without having to install everything themselves. Therefore I use Vagrant to ...
0
votes
1answer
197 views

Why is /usr/bin/env permission denied to rails server?

I've just set up rails on an apache server running on Ubuntu, and when I try to go to the root page it gives this error: An error occurred while starting up the preloader. It exited before signalling ...
0
votes
0answers
31 views

Javascript not working on phusion passenger apache server

I have this strange behaviour. My server works perfectly fine while i issue thin command to boot the server. thin -p 80 -e production But the click function vanishes when i do the same using apache ...
0
votes
0answers
102 views

Nginx to serve files from multiple locations - resources paths optimization

In my rails 4 app, I have assets pipeline to process my custom js/scss. I also use /vendor/assets/javascripts as a place for 3rd party libs - jquery, requirejs... Those, I don't want to process by ...
0
votes
2answers
39 views

Skip passenger instance stop on apache2 reload

When apache reloads cofig files all instances of passenger are stopped and must be spawned again, it creates a problem, because spawn of rails application isn't fast process. Is there any workaround ...
0
votes
0answers
179 views

Horizontal Versus Verticale Scaling for Large Scale RoR Application (High CPU and Memory Usage)

We are launching a high demand (several hundred simultaneous users) Ruby on Rails application and we are trying to determine the best way to scale. Currently, we have a setup that follows this ...
0
votes
1answer
142 views

All Passenger processes suddenly hang - backtrace indicates reading POST data?

I've been having problems with my nginx/Passenger server where requests appear to be getting stuck, any subsequent requests don't complete, the queue gets up to its max, and the site starts serving ...
0
votes
1answer
75 views

Restart individual rails apps in nginx+unicorn

I have 15-20 independent rails applications on the same ec2 instance. The rails applications are deployed using apache + passenger with Railsbaseuri. RailsBaseURI /games <Directory ...
0
votes
1answer
45 views

Should Rails apps be run by a system user or a regular user?

In a production environment on Ubuntu (12.04), should a Rails app be run by a system or a regular user? I'm creating a dedicated user to running the a rails app and I'm not sure whether to create a ...
0
votes
1answer
379 views

Instances slow when connected to AWS load balancer

I have setup 5 t1.micro EC2's behind an AWS load balancer. All the instances slow down once they are connected to the LB. Eight out of 10 requests takes more than 30s even when I do the requests ...
3
votes
0answers
153 views

Rails 4 Unicorn+Nginx on Ubuntu 13.04 VPS keeps crashing

I bought a years subscription at bluevm.com (found some coupon code, it was only about $15 for a whole year) to launch my first Rails Production server. I'm running Nginx with Unicorn and MySQL on ...
1
vote
0answers
100 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 ...