andrnimm
By:
andrnimm

Running Rails app under Apache

July 27, 2017 139 views
Apache Ruby on Rails Ubuntu 16.04

Sorry for the newbie question:

A previous developer on my project had a Rails app up and running in a droplet. I'm not a Rails developer, but I wanted to keep the app available while installing WordPress alongside the Rails app, in the same droplet. Unfortunately I didn't backup before starting.

I installed Apache and Passenger, assigning a virtual host for the Rails app at port 3000. It won't load - the environment is not properly configured under my username.

Here is the error message presented by Passenger:

<^>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:

bundle install
If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:

Is this app supposed to be run as the root user?
Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use.
-------- The exception is as follows: -------

Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)
<^>

I can't run bundle install - I get Could not locate Gemfile or .bundle/ directory

I'd like to either recreate the proper environment for this app, or remove apache and revert the droplet to being a simple Rails server.

Be the first one to answer this question.