Questions tagged [ruby-on-rails]

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.

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

911 questions
2
votes
0 answers

Advice wanted: Docker Infastructure for the newbie, Flynn, Dokku and Deis or just plain docker?

To give some background we are a development Agency, mostly using Ruby/Rails to develop complex data driven web applications. These applications usually make use of various services such as a database, caching layer, full text indexing, etc... We…
Paul Carey
  • 29
  • 1
2
votes
1 answer

Start Rails on boot for AWS EC2

i have a ubuntu EC2 instance and i want start my rails server at boot. So i have a script: start.sh #!/bin/bash # # Start Rails Server cd ~/spree rails server -d and i have this in my rc.local: rc.local #!/bin/sh -e # # rc.local # sudo -u ubuntu -i…
SaroVin
  • 130
  • 3
2
votes
4 answers

How to scale down for low memory server?

I'm having problem with one of my Rails applications, that runs on 365MB VPS, which seems to be not very much. When there are more than 3-5 users at the same time it runs out of memory and starts to use swap, which is f****** slow. As I look into…
Jakub Arnold
  • 1,744
  • 10
  • 26
  • 33
2
votes
1 answer

Why is my request queueing time so high?

I am running a Rails application server. My setup is: Apache 2, using mod_ssl for both https and ssl client certificates Phusion Passenger 5 Rails 4 Ruby 2.1 I use NewRelic to monitor the running application. I recently enabled monitoring for…
YWCA Hello
  • 203
  • 1
  • 2
  • 9
2
votes
2 answers

Deploy Rails app from Hudson

I'm using hudson as my CI and it works great, builds run their tests, code metrics, all that good stuff. But at the moment, that's it, no automated deployment, I have to manually do that after. I haven't found any sort of capistrano plugin for…
brad
  • 502
  • 1
  • 10
  • 22
2
votes
1 answer

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 that is not the solution. After sometime it again…
Azmat Rana
  • 121
  • 1
  • 3
2
votes
1 answer

Why do I get duplicate HSTS headers? AWS ELB, nginx, Ruby on Rails

I'm running a set of Rails servers on AWS with elastic load-balancing and nginx. When I run a security test at SSL labs (http://ssllabs.com/ssltest), it reports back: Invalid: Server provided more than one HSTS header Where's that coming from,…
John Feltz
  • 121
  • 1
  • 7
2
votes
4 answers

Customer Passenger Error Pages

How do you replace the Passenger Application failed to load error messages. They are lovely, but I'd rather not display them when we move our application to production. It'd be better to just show them on the dev box and maintenance page on the live…
Adam
  • 321
  • 1
  • 3
  • 6
2
votes
1 answer

Is it really recommended to build Ruby from source on production servers?

I've seen all over the place people using RVM/rbenv to install the most updated version of Ruby on Linux. On development, I understand that it may be OK to do this, but I can't understand why would I do this on a production server instead of using…
gtbono
  • 237
  • 3
  • 8
2
votes
1 answer

apache2 service not restarting rails ubuntu

When I type: sudo /etc/init.d/apache2 restart ... or: service apache2 restart ... I get the following error: Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xe" for details.` When I type systemctl status…
Salman Qureshi
2
votes
1 answer

Apache passenger setup - Multiple projects under same domain

I want to setup different projects under same domain with different ruby version for each app. Eg: example1.com is a main app which runs on Ruby 1.8.7 example1.com/tasks is another app which runs on Ruby 1.9.2 I tried some of the setup in apache2…
Lohith MV
  • 121
  • 3
2
votes
1 answer

Posting url of rails application on FB without https replace meta tag description with "welcome to nginx"

I have a rails application deployed on an amazon ec2 ubuntu instance, configured with nginx which is working fine. The problem is when I try and post the url of the site on facebook without https either http://example.com or www.example.com it posts…
Zaeem Asif
  • 33
  • 5
2
votes
1 answer

EC2 Public DNS not working with HTTPS - Elastic Beanstalk URL is working

I have completely ran out of ideas to fix this issue. I've gone through just about every given solution to similar issues and nothing has worked successfully. I've successfully set up my Ruby on Rails application using Elastic Beanstalk to work…
2
votes
0 answers

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 one user on this server, root. Google Cloud -…
Ralph
  • 862
  • 11
  • 26
2
votes
2 answers

SELinux - logrotate is not rotating NGINX logs

I am using CentOS, NGINX and Passenger to serve a Rails application. I have SELinux activated, and have had a series of problems with logrotate. I have been able to resolve most of the issues by following various advice online. Unfortunately,…
niciliketo
  • 71
  • 2
  • 6