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
0answers
4 views

AWS Opsworks: Restart Service after deploy

I'm using AWS Opsworks for a Rails Application, I have an Upstart Service to start/stop/restart Sidekiq ej: sudo service sidekiq restart So now after every deployment I want run sudo service sidekiq ...
-2
votes
0answers
8 views

Ruby on Rails: server clustering on Windows OS

I've been having performance issues in my Rails app since the number of users increased. I deployed the app using thin app server on Windows OS. It seems that there are only a few choices for app ...
1
vote
1answer
1k views

Unicorn workers timing out intermittently

I'm getting intermittent timeouts from unicorn workers for seemingly no reason, and I'd like some help to debug the actual problem. It's worse because it works about 10 - 20 requests then 1 will ...
4
votes
1answer
1k 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 ...
-1
votes
1answer
13 views

Running Ruby on Rails and PHP apps side-by-side under the same (Apache) web directory structure

My company have several apps running alongside on an Apache2 web server which resides on an Ubuntu server. Our setup includes: A portal website is set at Apache's document root "/" Another ...
0
votes
1answer
1k views

Why is rails application always running in development mode?

I created rails application, and everything appears to be working fine, but I can't seem to figure out how to run the application in production mode. I specified in the example.com.conf (Apache ...
5
votes
2answers
1k 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 ...
2
votes
3answers
1k 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 ...
-1
votes
0answers
7 views

Point Phusion passenger to home directory Inmotion Hosting [closed]

I'm deploying rails applicatoin on inmotion hosting at coolmappdb.com - and when i get there i says Could not spawn process for application /home/username/public_html/coolmappdb.com: An error ...
0
votes
2answers
2k 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
1answer
1k views

directory not owned by the 'mysql' or '_mysql' user

I have recently installed MSQL for a Rails App. After some tinkering, I have an error starting mysql now that reads as follows: Warning: The /usr/local/mysql/data directory is not owned by the '...
2
votes
1answer
2k 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 6.3....
1
vote
4answers
3k 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
1answer
3k 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
0answers
2 views

Rails: Heroku settings, not casting from int to string [closed]

This question is in reluctance to a critical error on a business app I'm operating. I really need help :( So today the DB space of my Heroku app filled up. I proceeded to re-provision my plan from "...
2
votes
1answer
1k 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 configuration....
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 has_and_belongs_to_many_association....
0
votes
1answer
49 views

Passenger could not spawn process for application. Rails, ubuntu, passenger and apache

My application is crashing again and again. I am using the hosting services of digital ocean the status of the server are also displayed in the image (It start working when I restart the server but ...
0
votes
0answers
23 views

Server is crashing Apache, Passenger, Ubuntu and Rails

My application is crashing again and after using the live application. Last night it crashed more than 3 times. (It start working when I restart the server but that is not the solution. Apache log....
1
vote
1answer
1k views

How do I install Rake (Ruby on Rails)?

I want to install Ruby on Rails (I'm running a FreeBSD but don't want to use Ports for RoR) so this is a more generic unix/RoR question. Simply what is the best way to install Rake. http://rake....
141
votes
8answers
139k views

How to force or redirect to SSL in nginx?

I have a signup page on a subdomain like: https://signup.example.com It should only be accessible via HTTPS but I'm worried people might somehow stumble upon it via HTTP and get a 404. My html/...
2
votes
1answer
2k 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
2answers
1k views

Apache Passenger displaying my Rails application contents?

I have installed mod_rails (phusion passenger) for Apache on Ubuntu 11.10. Ruby and Rails are running fine, and so does mod_rails. I have setup a site on dev.localhost, which is my ruby app. The app ...
0
votes
1answer
46 views

trying to diagnose weird nginx 110 connection timeout error somehow related to redirection

I'm trying to diagnose server timeouts on ubuntu 16.04. I've seen this site http://blogs.candoerz.com/question/161218/cannot-figure-out-nginx--puma-timeout-110-connection-timed-out.aspx and ...
0
votes
3answers
4k 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 http://...
0
votes
0answers
11 views

Customize “bundle install”?

My Rails 4 application is failing to deploy with the error "Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh failed." Upon reviewing my logs I'm finding that Elastic Beanstalk is ...
1
vote
0answers
75 views

How do I correctly configure nginx to work with rails on Ubuntu 16.04 on digital ocean

I have decided to install latest ubuntu 16.04 system on the site I manage and it was a chain of disasters. I had problems with mysql server that I'm not sure are completely fixed, because sometimes I ...
0
votes
1answer
41 views

Error While installing Ruby on rails

I am consulted this document (How To Install Rails and nginx with Passenger on Ubuntu). Currently i am using Ubuntu 14.04.4 LTS. This time i am first installing ruby with rails.. how can i fixed this ...
1
vote
1answer
1k views

Package issue with Ubuntu 10.10 and passenger requirements

I'm trying to get Passenger working with Ubuntu 10.10 (Maverick Meerkat), and I'm running into a problem. It seems that the Passenger installer is not recognizing the virtual package. I'm getting ...
0
votes
0answers
1k views

Apache 2.4 & Phusion Passenger generating 403 Error

I'm trying to setup a Rails application (Project Fedena) on the following Server configuration. I am using the virtual host configuration below. I get a 403 when I visit the IP/Domain. There's only ...
0
votes
0answers
21 views

docker ruby bundle invalid utf

I'am setting up docker for my rails project. I'm getting error: /usr/local/bundle/gems/bundler-1.12.5/lib/bundler/ui/shell.rb:99:in `[]': invalid byte sequence in US-ASCII (ArgumentError) from /...
0
votes
1answer
49 views

Postgres doesn't shut down properly

Here is my original error: $ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? ...
0
votes
0answers
13 views

Command in Docker-container called “native” using 100% CPU

I have a server running Docker managed through Dokku. I have multiple applications running without any issues, but one have multiple times been crashing. The app is a Rails-app based on the open ...
0
votes
0answers
47 views

Installing Apache Passenger 2.2.2 module fails

I'm attempting to install a Passenger 2.2.2 module (from a gem) (Centos 6.7 + Apache 2.2.15)- attempting to install/compile this module fails as shown below: RubyGems Environment: - RUBYGEMS VERSION:...
0
votes
1answer
16 views

After commenting out virtualnameHost on passenger_vhosts.conf my apache2 is only resolving to one domain

I have to hosts (domains) that i have added on the passenger_vhosts.conf. I had namevirtualhost*:80 on my conf file and i was able to resolve for two domain, after updating my apache2 the ...
1
vote
2answers
2k views

Configure in Apache two Ruby on Rails apps in the same Server with same IP

I previously ran an two Ruby and Rails applications, one of them by using rails console command, the another one using Apache trough Phusion Passenger. Both applications ran in same IP, the only ...
0
votes
2answers
38 views

nginx permission issue serving static file - RedHat 7 SELinux issue

This is a new installation which I followed the passenger+nginx guide. This will eventually be a rails site, but for now I am trying to get static files to serve, and am unable to figure out the ...
0
votes
0answers
40 views

Issues with a fresh dev OneOps instance

I followed the instructions here: https://github.com/oneops/setup.git and was able to bring up an OneOps instance. I am able to create a user and log-in, however I am not able to create organizations. ...
0
votes
0answers
44 views

Running Rails apps on subdomain with Apache and mod_rewrite WITHOUT VirtualHost

I am host a number of domains on Apache (Ubuntu). I am not using VirtualHost for all the domains, I am using mod_rewrite (and a custom RewriteMap to boot) to map domains and subdomains to a variety ...
1
vote
0answers
11 views

Latest GitHub source not being deployed properly by Opsworks

I have an Opsworks Rails Layer (nginx/unicorn) instance that has been running for a while, and I have successfully deployed my rails app to it many times directly from GitHub. Yesterday, I started ...
1
vote
1answer
45 views

Nginx user uploaded SSL Certificates

I'm wondering what's the best way to let users upload their SSL certificates. I have a multitenant application based on rails/passenger/nginx and I need each user to use his own domain with his SSL ...
0
votes
1answer
25 views

AWS: By what IP address should I reference on an EC2 instance where is running Redis?

I have 2 EC2 instances - on one is the production app, on the other one is Redis. I connect from the first one to Redis. This is how I set Sidekiq: Sidekiq.configure_server do |config| config....
3
votes
1answer
101 views

Unable to deploy a rails application using eb cli

I recently updated my environments configuration to :64bit Amazon Linux 2015.03 v1.4.6 running Ruby 2.2 (Passenger Standalone). After deploying my application using eb deploy i now get an error in my ...
1
vote
1answer
39 views

How do I run chef recipe from inside ruby code?

From the Rails app I need to provision, configure and manage servers on Amazon AWS. Some time ago I've been using chef-solo and knife to do that, but from the command line. Would that be possible to ...
1
vote
0answers
47 views

Server CPU at 100 Percent and not responding using PUMA and Nginx

My Server CPU is at 100 percent and not responding using PUMA and Nginx after one or two days. I use 4 workers. Up to now I had a look at the problem with strace, which leads to the following Output ...
1
vote
2answers
434 views

Cannot figure out NGINX / Puma timeout 110: Connection timed out

Every so often, my rails server stops responding. I tail the logs and there is nothing—just a bunch of requests that have begun to start after the last one completed... Using Ubuntu Puma 2.15.3 ...
0
votes
2answers
40 views

Nginx - rewrite root domain to point to specific Rails controller/action

I have http://foo.com and https://bar.com. When a visitor goes to http://foo.com I would like them to see the content on https://bar.com/pages/about Both domains are hosted on the same server using ...
1
vote
0answers
34 views

Rails + Nginx + SSL - Allow no-SSL on some routes

I have a rails app being served by nginx. I have ssl enabled on all routes with this conf: server { listen [::]:80; listen 80; server_name domain.com; access_log /var/log/nginx/...
1
vote
1answer
37 views

502 bad gateway errors after 68 concurrent users to website

I'm running into issues while doing some stress testing in jMeter. Essentially, we're hitting a hard limit of 68 concurrent users. As soon as the test ramps up to that number of users, we're getting ...
3
votes
4answers
125 views

how can we run multiple applications with different domain & port numbers in apache

I Have two applications running on my server with domains x.abc.com admin.x.abc.com x.abc.com is running on port 80 admin.x.abc.com is running on port 8080 I can able to access x.abc.com from ...