Ember app on OS X

33 views
Skip to first unread message

Camden Narzt

unread,
Sep 6, 2016, 3:03:28 PM9/6/16
to Phusion Passenger Discussions
Frank Stock said: Thanks. I want to deploy an EmberJS app which an Rails api backend. My Rails api has "/api/v1" in the namespace. I have made a copy of the static files of Ember into public. My application works, but I get a bad gateway if I want to get something from Rails.

Frank Stock

unread,
Sep 6, 2016, 3:39:07 PM9/6/16
to Phusion Passenger Discussions
Where can I find a log file for passenger?

Op dinsdag 6 september 2016 21:03:28 UTC+2 schreef Camden Narzt:

Camden Narzt

unread,
Sep 6, 2016, 4:19:29 PM9/6/16
to Phusion Passenger Discussions
Passenger logs to your apache log file by default, so wherever apache is logging to. (I am not sure where server.app is configured to send those logs by default) You can search for lines that match ErrorLog in your apache config.

Frank Stock

unread,
Sep 7, 2016, 5:48:48 AM9/7/16
to Phusion Passenger Discussions
I works, I have moved my app to the Data folder.
 - Is it safe to place the whole rails-app in the Data-folder?
 - I use Ember as my front-end and I have placed the Ember-app in the public-folder. Is that the best way to do?


Op dinsdag 6 september 2016 21:03:28 UTC+2 schreef Camden Narzt:
Frank Stock said: Thanks. I want to deploy an EmberJS app which an Rails api backend. My Rails api has "/api/v1" in the namespace. I have made a copy of the static files of Ember into public. My application works, but I get a bad gateway if I want to get something from Rails.

Frank Stock

unread,
Sep 7, 2016, 10:14:41 AM9/7/16
to Phusion Passenger Discussions
It works on a test server, now I am trying to install on a production-server (same system, with Webobjects running on it). 
This is what I get:
/Users/clklacht/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': incompatible library version - /usr/local/Cellar/passenger/5.0.30/libexec/buildout/ruby/ruby-2.3.1-x86_64-macosx/passenger_native_support.bundle (fatal)
	from /Users/clklacht/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/ruby_supportlib/phusion_passenger/native_support.rb:423:in `load_native_extension'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/ruby_supportlib/phusion_passenger/native_support.rb:103:in `load_from_buildout_dir'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/ruby_supportlib/phusion_passenger/native_support.rb:39:in `try_load'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/ruby_supportlib/phusion_passenger/native_support.rb:50:in `start'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/ruby_supportlib/phusion_passenger/native_support.rb:439:in `<top (required)>'
	from /Users/clklacht/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/clklacht/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/ruby_supportlib/phusion_passenger.rb:235:in `require_passenger_lib'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/helper-scripts/rack-preloader.rb:76:in `init_passenger'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/helper-scripts/rack-preloader.rb:155:in `<module:App>'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
	from /usr/local/Cellar/passenger/5.0.30/libexec/src/helper-scripts/rack-preloader.rb:29:in `<main>'

Op woensdag 7 september 2016 11:48:48 UTC+2 schreef Frank Stock:

Camden Narzt

unread,
Sep 9, 2016, 3:37:55 PM9/9/16
to Phusion Passenger Discussions
I'm sorry I don't follow, if it's the same system as the test server, what did you change? This looks like the system that you are now running on has a different architecture to the one that passenger built it's native extensions on.
Reply all
Reply to author
Forward
0 new messages