Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails console command not working

The rails console command is not working on digitalocean. I have also tried RAILS_ENV=staging bundle exec rails console.

Is this a known issue? Experts please help me.

It just shows rails command for creating new rails application.

I am using a ubuntu 14.04 server in digitalocean.

like image 314
Md Sirajus Salayhin Avatar asked Dec 01 '22 14:12

Md Sirajus Salayhin


1 Answers

I have figured it out.

I just remove bin directory and run the command to regenerate bin again.

Running below commands solve my problem.

rm -r bin/*

bundle exec rake rails:update:bin
like image 80
Md Sirajus Salayhin Avatar answered Dec 06 '22 18:12

Md Sirajus Salayhin