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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!