Ruby on Rails ufinished - ruby-on-rails

enter image description here
I have been trying execute the command --> rails new weblog in Terminal from Linux Mint after install Ruby however the application cannot be complete with the same error message, below:

Either bundle install or rake exec bundle install

What I can understand from the logs referenced in the question is that you are not executing bundle install command inside the project directory i.e. weblog. So first cd to weblog.
cd weblog
bundle install
I hope this helps!.

Related

The command `foreman start` is giving a Exec format error

I'm trying to make a new project with Ruby on Rails and I'm installing all the required gems. Everything looks right but when I run foreman start I get a list of errors
I tried reinstalling the gems and updating them but I always get this.
Thanks for the help!
Probably, webpack cannot be found.
Try to run:
npm install or yarn install
bundle install
bundle exec rake webpacker:install

Rails: Error running 'bundle' command

I am running bundle install --local and getting the following error:
Your bundle is locked to rake (11.2.2), but that version could not be found in
any of the sources listed in your Gemfile. If you haven't changed sources, that
means the author of rake (11.2.2) has removed it. You'll need to update your
bundle to a different version of rake (11.2.2) that hasn't been removed in order to install.
Unable to decipher as to what needs to be done.
Any help would be highly appreciated.
Try running these commands
gem install rubygems-bundler
gem regenerate_binstubs
I encountered this problem also while using Jenkins, so here is what helped me:
First go through console to your job directory:
cd /var/lib/jenkins/workspace/<your-job-name>
If you are not sure where Jenkins stores your project, use pwd command inside your bash script.
In this directory, find your Gemfile.lock and delete it
rm Gemfile.lock
then try running bundle as you would usually do from console
bundle install
And see your bundle working. Hope it helps someone to solve the issue.

rubymine - can't execute bundle install correctly

I am new to ruby on rails and rubymine, in rubymine I created a rails project, when try to run it, it seems can't execute bundle install automatically, I have to execute bundle install in shell by hand first, then could run the project from rubymine successfully.
My question is:
Which part did I miss, how to config the linux environment or config rubymine to let it execute bundle install automatically & correctly?

How test a Rails app in a browser

I used Fedora 21 in VirtualBox to create a rails app.
I have installed Ruby, Rails, rubygem, and bundle ($ bundle install) for my rails app.
However, when I go to http://localhost:3000/, there is an error...
When I run this command :
$ rails server
There is an error : Could not find a Javascript runtime
Thank you for your help.
run bundle exec rails server if it still there try this
yum -y install nodejs
or look at this

Can't run command rails console on EC2 after deploy

I use AWS with Elasticbeanstalk to deploy my applications, but I can't run the command rails console once ssh to my server and going to /var/app/current.
I tried many commands, without success :
bundle exec rails c
RAILS_ENV=development rails c
I got the follow error:
Could not find addressable-2.3.6 in any of the sources
Run `bundle install` to install missing gems.
But when running bundle install everything is fine.
This error is a huge issue to me as I can't use the whenever cron job.
Can you help me ?
PS : Gist of my Gemfile here
ran into similar problem and this is what solved my problem:
you may try sudo gem install bundler from your root and later move to app/current and try run rails c -e environment_name

Resources