passenger

Cloudfront CORS blocking fonts

倾然丶 夕夏残阳落幕 提交于 2019-12-24 08:47:54
问题 All the assets except for the fonts load nicely, and whenever I go to my site I keep getting messages like this one: Access to Font at 'https://xxxxxxxxxx.cloudfront.net/assets/fontawesome-webfont.woff2' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://example.com' is therefore not allowed access. As you can see CURL command indicates that no headers are present. curl -H "Origin:

500 internal server error in ruby on rails

你说的曾经没有我的故事 提交于 2019-12-24 03:23:51
问题 I am deploying my ruby 3.2.6 project using passenger 3.0.17 . My httpd.conf file is: <VirtualHost *:80> ServerName test.com DocumentRoot /var/www/html/test/public RackBaseURI /var/www/html/test/public <Directory /var/www/html/test/public> # This relaxes Apache security settings. AllowOverride all # MultiViews must be turned off. Options -MultiViews </Directory> PassengerMinInstances 1 </VirtualHost> LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/ext

Passenger misses development gem in production environment

老子叫甜甜 提交于 2019-12-24 03:00:12
问题 I've got a strange behaviour on my production server: I deploy my Rails 3 application via Capistrano to the production server. The Capistrano script restarts passenger at the end of deployment. When I open the application I see a passenger error message: Could not find autotest-fsevent-0.2.4 in any of the sources (Bundler::GemNotFound) Of course autotest-fsevent is not installed in my production environment (and even can't be installed on Ubuntu...) The environment is set in apache's

Mapping multiple domain names to different resources in a Rails app

99封情书 提交于 2019-12-24 01:25:52
问题 The rails app I have allows users to manage holiday homes. Each property has it's own "website/homepage" within my app and a user can tweak the content, it works well, quite pleased so far. Typical rails approach to the resources so the URLs to a particular property look like this for the "homepage" of a particular property. localhost:3000/properties/1/ then localhost:3000/properties/1/full_details localhost:3000/properties/1/price_list etc Requirement is to map a domain name e.g. www.chalet

Premature end of script headers — Rails

半腔热情 提交于 2019-12-23 23:14:02
问题 I am getting 500 internal server error after installing all gems. Some people say it has to do with memory usage, but I am at 29% This is my vhost VirtualHost *:80> ServerAdmin examplea@example.com ServerName 0.0.0.0 # ServerAlias DocumentRoot /var/www/sample_app/current/public ErrorLog /var/www/sample_app/error.log RailsEnv production <Directory "/var/www/sample_app/current/public"> Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all </Directory> </VirtualHost> Does the

Getting SSL to work with Apache/Passenger on OSX

有些话、适合烂在心里 提交于 2019-12-23 12:02:08
问题 I use apache/passenger on my development machine, but need to add SSL support (something which isn't exposed through the control panel). I've done this before in production, but for some reason I can't seem to get it work on OSX. The steps I've followed so far are from a default apache osx install: Install passenger and passenger preference pane. Add my rails app (this works) Create my ca.key, server.crt and server.key as detailed on the apple website. At this point I need to start editing

Disable the Phusion Passenger (Standalone) error page on AWS Elastic Beanstalk?

扶醉桌前 提交于 2019-12-23 10:04:40
问题 When deploying application to Elastic Beanstalk, is it possible to disable the error page that is shown by Phusion Passenger (Standalone)? Especially in production. This page includes a stack trace as well as exposed environment variables ... which is dangerous in my opinion. Quick way to reproduce this would be introduce a syntax error (it's not the only way). I can see here (link) that it's possible ... just not sure how you'd do the same on EB. To avoid broken links in the future, I'll

Phusion error: undefined method `has?' for Sass::Util:Module

折月煮酒 提交于 2019-12-23 09:04:11
问题 I get the following error issued by Phusion when loading a web page: There was an error while trying to load the gem 'compass-rails'. Gem Load Error is: undefined method `has?' for Sass::Util:Module Did you mean? hash Hash Backtrace for gem load error is: /Volumes/Data/htdocs/zetcho/vendor/bundle/gems/compass-0.12.2/lib/compass/sass_extensions/functions/urls.rb:5:in `has?' The code at the indicated location is: module Compass::SassExtensions::Functions::Urls def self.has?(base, instance

Nginx + Passenger + Rails Server Error

﹥>﹥吖頭↗ 提交于 2019-12-23 05:41:13
问题 When i try to go to my server i get the following error App 13379 stdout: App 13379 stdout: [ 2015-02-02 05:28:59.1782 13226/7fb5d9699700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/www/noise: An error occured while starting up the pr$ Error ID: b4c47933 Error details saved to: /tmp/passenger-error-U83DbV.html Message from application: cannot load such file -- bundler/setup (LoadError) /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib

Nginx + Passenger + Rails Server Error

六月ゝ 毕业季﹏ 提交于 2019-12-23 05:41:06
问题 When i try to go to my server i get the following error App 13379 stdout: App 13379 stdout: [ 2015-02-02 05:28:59.1782 13226/7fb5d9699700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/www/noise: An error occured while starting up the pr$ Error ID: b4c47933 Error details saved to: /tmp/passenger-error-U83DbV.html Message from application: cannot load such file -- bundler/setup (LoadError) /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' /usr/lib