Fork is not a heroku command - ruby-on-rails

I'm trying to change my Heroku app region by following this official guide: https://devcenter.heroku.com/articles/app-migration.
The problem is that, when I try to fork it at the very beginning using: heroku fork --from sourceapp --to targetapp --region eu.
Heroku cli returns:
! fork is not a heroku command.
! Perhaps you meant info
! Run heroku help for a list of available commands.
I'm using the latest version of Heroku Cli 6.15.18-fdf2097 in Windows 10

heroku-fork says
Heroku CLI plugin to fork an existing app into a new app.
DEPRECATED: Heroku fork is deprecated as a core command. It will no longer be included in the CLI by default 2017-12-01. See Developing CLI Plugins for more information on developing plugins.
You need to install heroku-fork plugin
Installation
heroku plugins:install heroku-fork
More info see here
Hope it helps

Related

Install specific version of Bonsai Elasticsearch in Heroku

Is it possible to install a specific version of Bonsai Elasticsearch in Heroku ?
I'm trying to follow the documentation with this command line => heroku addons:create bonsai:[plan] [-a APP_NAME] [--version=X.Y] with this link https://docs.bonsai.io/article/194-heroku
I want to install 6.5.4 version. The command always install me latest version of ES which is 7.2.0
Anyone has same issue ? How can I fix this ?
Thx by advance !
You are going on right path.
You can do
heroku addons:create bonsai --version=6.5.4
for installing 6.5.4 version as per this documentation. Reference: https://docs.bonsai.io/article/194-heroku
What error you are facing after running this command?
I have done it. But when I launch the command with --version=6.5.4 is not taking into account. 7.2.0 version is always install..
No error is report

Heroku CLI throws an error whenever I try to do anything: "Please specify a version along with Heroku's API MIME type"

As of this morning, without having change anything in my Heroku CLI setup, I received the following error when I tried to run:
heroku logs -t -app <app_name>
! Please specify a version along with Heroku's API MIME type. For example, Accept: application/vnd.heroku+json; version=3.
I have since tried updating both heroku and heroku-toolbelt via brew upgrade heroku and brew upgrade heroku-toolbelt, but this did not solve the issue.
I get this error essentially whenever I try to do anything with heroku CLI, including heroku logs, heroku apps, heroku login, and heroku auth:login.
I am running MacOS, and the error posted is the only information that I am getting back from Heroku.
This discussion here: How can I specify heroku's MIME type? pertains to upgrading Heroku in Ubuntu and does not solve my issue.
I had the same problem -- but installing the new Toolbelt did not work at first. There was one other step I needed to do.
from: https://devcenter.heroku.com/articles/heroku-cli
It has instructions for each platform on installing the new cli -- and says you need to run: which heroku in order to verify the proper version is running. In my case I also needed to do a gem uninstall heroku in order to get everything working, as it was running the gem binary instead of the newly installed heroku-cli binary.
If you were using heroko Plugin for intellij
I tried alot to make it work !
From here official response
#emzeidan thanks for the report. This plugin is deprecated, and uses an old version of the Heroku API that has been shut down. Please recommend to your users that they use one of the alternative deployment mechanisms described in our DevCenter article on WAR deployment. If you can remove from the plugin from any Bamboo marketplace (or similar thing) that would be helpful too. Thanks.
This was on Sept-2017
I run the 'heroku --version' command and the toolbelt automatically updates the client. After that the login was ok.
I had the same problem on macOS Sierra 10.12.3 when I installed heroku via brew.
To get round it I ran brew uninstall heroku-toolbelt then installed via the Mac installer at https://devcenter.heroku.com/articles/heroku-cli#macos and it works fine now.
Have you specified the heroku gem in your Gemfile? If yes, then remove it.
And then, install Heroku CLI for https://devcenter.heroku.com/articles/getting-started-with-ruby#set-up and run your command.

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.

Cannot fork an older heroku app

I have a ruby on rails app on heroku that I wanted to make some updates to. I was hoping to fork the app and test my changes on a new staging clone before I update the live site.
When I try the command:
heroku fork -a source-app new-staging-app
I get the error:
! 'fork' is not a heroku command.
And when I use "heroku help", fork does not appear as one of the choices.
When I'm signed in to another account and working on a more recent app, the fork command is available as a command.
The app I'm trying to fork is on the cedar stack and it's currently using rails 3.2.11.
Any idea why 'fork' might not be available with this app?
The 'fork' command was added to the heroku toolbelt in 2013. Install the latest version of the heroku toolbelt on the account in question to be able to use the fork feature: https://toolbelt.heroku.com

Heroku/Rails: How to install the GNU Scientific Library (GSL) on Heroku?

I need to install the GSL library on Heroku running a Rails (4.0.2) app to use some gems that depend on it.
Goal:
Install the GSL library to work with GSL and Similarity gems in Heroku.
Tried approaches:
Installing Ruby / GSL in Heroku Application: Heroku crashes after deploy. GSL gem is unable to find the lib. Trace: http://pastebin.com/CPcMUdCa
Tomwolfe's Heroku's Ruby buildpack adapted for using couchbase: Same issue.
Building Dependency Binaries for Heroku Applications: Vulcan is deprecated. More info on Heroku's Devcenter and on Github
I've tried following these steps (compiling binaries):
GSL 1.15 downloaded from ftp://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz
Uncompressed and cd gsl-1.15
./configure
make clean
make
sudo make install
It works on my local environment but not in Heroku. Heroku doesn't allow sudo but it allows access with heroku run. The problem is that the file system is ephemeral and the dyno will only live as long as your console session.
Update:
I've also tried building my own Heroku Buildpack but I couldn't make it work. I tried using multipacks. I'm not a Heroku Buildpack expert so maybe it's the problem, I'm learning more about it to make a simple repository with an example and an extended explanation of this issue.
I had to use gsl1.16 on heroku and here is how I solved it:
First added gsl1.16 buildpack to the lists of buildpacks like
heroku buildpacks:add --index:3 git://github.com/gregory/heroku-gsl-buildpack.git#gsl-1.16
Which adds to my list of buildpacks, in my case got nodejs and ruby already. Hence --index=3
Then had to set LD_LIBRARY_PATH on heroku like
heroku config:set LD_LIBRARY_PATH=/app/vendor/gsl/lib
which points to 1.16. Seen around that some people use /app/vendor/gsl1/lib but wasn't my case.
and that's it.
I made a heroku buildpack a couple months ago for 1.15 and 1.16
just do:
heroku buildpacks:set git://github.com/gregory/heroku-gsl-buildpack.git#gsl-1.16
or
heroku buildpacks:set git://github.com/gregory/heroku-gsl-buildpack.git#gsl-1.15
You'll need to use a custom buildpack. Buildpacks allow you to define any additional dependencies outside of your project and package them with your slug which is used by the dynos. The buildpack you linked to (https://github.com/tomwolfe/heroku-buildpack-gsl-ruby) would be your best bet in getting everything working. I would open issues on their github repo if you are having issues, hopefully they can help you out

Resources