deploying fedena project on heroku - ruby-on-rails

I had setup rails Fedena on my local machine but cannot make it happen on heroku.
Fedena does not have Gemfile and heroku is giving error due to this.
After adding sudo Gemfile with some gems, heroku accepts the project but after that it started giving errors for gems (Install this, that)...
The plugins command is also not working on heroku.
Kindly help, if anyone have idea about this...

Related

Deploy failure on Heroku - Ruby (on windows)

I downloaded and installed Ruby, Ruby gems and with it installed Jekyll. Started a test project with Jekyll. Want to deploy it on Heroku (because gh-pages don't support plugins on Jekyll).
Read docs on Heroku for ruby, downloaded and installed JDK 8 and JRuby 9.1.17.0. Installed bundler.
Logged in Heroku, and executed following commands in terminal:
heroku create
git push heroku master
heroku open
The new heroku app build succeeded but the website fails to load. It displays error like so:
This is the error displayed when I check heroku logs
I also built a Procfile in the root folder for the test project. Entered the following code:
web: puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
I'm not sure what went wrong. Please help!
You need to figure out what's your web-server by default. As advised by Roberto, it might be puma.
By the default, when you run rails new, it always has the web-server gem (puma, passenger, unicorn or anything else).
It seems that you've copied some settings? And that's why you don't have puma in Gemfile, but trying to run it. You might share the Gemfile list to let you know what's wrong.

ruby on rails heroku gem runtime error installing

This is the error:
I am getting an error while installing Heroku gem please help me.
What Should I Do?
Please follow the official installation guide here.
You are installing ruby gem but what you need is heroku-cli which will help you run commands like, heroku create, heroku push, etc.
Actually It Worked , I Installed Heroku And Gone In Master Folder And It Worked Perfectly

Heroku : This version of the API has been Sunset. is displayed when heroku pg:psql

When I try to use heroku pg:psql, the following error is displayed.
! This version of the API has been Sunset.
! Please see https://devcenter.heroku.com/changelog-items/1147 for more information.
How can I access postgresql on Heroku?
heroku pg:psql command worked a few week ago.
I develop my Rails app on the Cloud 9.
I had the same issue with my ruby on rails project since last Friday.
However, i was able to resolve this error message by update my heroku toolbelt on my mac os.
*Hint, if your heroku file was installed in project gem. you will need to delete that file.
Use command which heroku to identify where is the heroku file. if it is inside the .rvm folder that means your project is still using outdated heroku file. and simply remove it and then ran an new install heroku cli should fix this error.
Let me know if this works for you.

Heroku can't find libruby-1.9.1.so.1.9

I'm running through a ruby on rails tutorial, and I just installed the Heroku toolkit.
My problem is that whenever I try "Heroku login", or whatever heroku command, I get :
ruby1.9.1: error while loading shared libraries: libruby-1.9.1.so.1.9: cannot open shared object file: No such file or directory
I remember having cleaned my ruby installations recently, so I wonder if I just miss some libs that I have deleted or something, but I haven't been able to find anything satisfying about that.
Do you have an idea how to get out of this situation, and be able to use Heroku ?
I managed to make heroku work by installing it with gem :
gem install heroku
instead of :
sudo apt-get heroku
It seems like heroku was trying to use a ruby version out of rvm (but i deleted the ruby version which was installed before rvm). Now the gem installation took care of that.

uninitialized constant Heroku::VERSION (NameError)

Seemingly out of the blue, I am no longer able to run "rails server" or "rails console" on this project due to the above error message. I'm rather certain I ran a "gem update heroku" on this project's RVM gemset a few days ago, so that may be the root cause. Ruby is ruby-1.9.2-p136. Rails is Rails 3.0.9. Once I get to the bottom of this error, I plan on upgrading to the latest Rails 3.0 release (3.0.14), but need to resolve this issue first. Any ideas? I tried installing the Heroku toolbet to no avail.
The Heroku gem seems to be fine in all other ways, I am able to run "heroku login", "heroku rake", "heroku console", etc, just fine. The issue is only on my dev machine and only when I attempt to start up the server or run console. Next step is to clone this project on my new MacBook and move forward that way...
Upgrading to the latest minor versions of Ruby (1.9.2) and Rails (3.0.14) resolved the issues. Thanks for all your help.

Resources