I am trying to add mongolab addon to my heroku app using CLI, but I get below message every time I use heroku addons:add mongolab command.
Refreshing plugins... !
▸ semver has no commands. Is this a CLI plugin?
Refreshing plugins... done
Refreshing plugins... !
▸ semver has no commands. Is this a CLI plugin?
Refreshing plugins... done
▸ addons:add is not a heroku command.
▸ Perhaps you meant plugins:link
▸ Run heroku help for a list of available commands.
Any idea what is happening and a way around?
The command to create a new addon and attach it to your app is heroku addons:create, not heroku addons:add:
heroku addons:create mongolab:sandbox
If that still gives you a "semver" error your Heroku CLI may be broken. Try reinstalling it.
You can use heroku addons --help to see details about using the heroku addons command.
Related
I have installed heroku with homebrew in my OSX El Capitan(10.11.5) and installed the heroku-container-tools with:
heroku plugins:install heroku-container-tools
The installation goes successfully:
Installing plugin heroku-container-tools... done
When I run a heroku version, I got this:
heroku-toolbelt/3.42.22 (universal.x86_64-darwin15) ruby/2.0.0
heroku-cli/5.2.20-9d094b0 (darwin-amd64) go1.6.2
=== Installed Plugins
heroku-container-tools#3.0.0
But when I run a heroku container:init I got this:
! `container:init` is not a heroku command.
! See `heroku help` for a list of available commands.
Running heroku help container I got this:
Usage: heroku container
Use Docker to build and deploy Heroku apps
Use Docker to build and deploy Heroku apps
Additional commands, type "heroku help COMMAND" for more details:
container:login # Logs in to the Heroku Docker registry
container:push [PROCESS] # Builds, then pushes a Docker image to deploy your Heroku app
I am following this heroku tutorial: https://devcenter.heroku.com/articles/local-development-with-docker
In the tutorial is said to run heroku container:init
This command was replaced but some other and heroku did not updated their documentation or I have some problem installing the plugin?
Yes, they restricted access to their container registry, just read the warning on top of the tutorial you're following https://devcenter.heroku.com/articles/local-development-with-docker
heroku container:release, which creates a Heroku-compatible slug and
deploys it to Heroku, has been deprecated. For access to our container
registry (available in private beta), please contact
docker-feedback#heroku.com
now there are only login and push commands. I hope you can easily ask for the access.
I am trying to run bash on heroku to test it out and it is failing
$ heroku run bash
▸ Error: No app specified
▸ Usage: heroku run --app APP
▸ We don't know which app to run this on.
▸ Run this command from inside an app folder or specify which app to use with --app APP
▸
▸ https://devcenter.heroku.com/articles/using-the-cli#app-commands
$ heroku run --app bash
▸ Usage: heroku run COMMAND
▸
▸ Example: heroku run bash
So, the example says heroku run bash will work but it doesn't. I have no dynos running. I feel I am missing something basic here...
Try run commands:
First you need to login, then you to see your apps and finally run bash
heroku login
Insert you user and password
heroku apps
=== user#gmail.com Apps
myaplication
then look at the list apps and write
heroku run bash --app myaplication
You could also do this:
get app name using;
heroku apps
then set heroku remote;
heroku git:remote -a yourappname
and finally run bash on/in your app
heroku run bash
I think you have two issues.
Firstly, you need to run bash within some app. You can either specify the app via the --app key as the help actually says or you can run this command inside the folder which has a heroku app initialized already. For connecting the folder to a heroku app - see this answer How to link a folder with an existing Heroku app.
Second, running a bash actually takes away one dyno from your app. So you need to have at least one dyno.
Try this command:
heroku pg:psql -a appname
OK I fixed the problem. It is failing because it is trying to rename to an existing file, once I deleted the file it was able to proceed installing the plugins and now everything is fine.
Trying to get started with Node.js on Heroku. I really don't think I can add any more details than the commands and output, but the site won't let me post unless I add more verbiage.
PS C:\Users\adamk\heroku\node-js-getting-started> heroku local web
Installing Heroku Toolbelt v4... done.
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
Setting up node-v4.1.1... ▸ rename C:\Users\adamk\.heroku\tmp\download455882471\file C:\Users\adamk\.heroku\node-v4.1
.1-windows-x86\bin\node.exe: Access is denied.
error loading plugin commands
error loading plugin topics
error loading plugin commands
! `local` is not a heroku command.
! Perhaps you meant `lock`.
! See `heroku help` for a list of available commands.
PS C:\Users\adamk\heroku\node-js-getting-started> heroku plugins
Installing Heroku Toolbelt v4... done.
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
Setting up node-v4.1.1... ▸ rename C:\Users\adamk\.heroku\tmp\download156546799\file C:\Users\adamk\.heroku\node-v4.1
.1-windows-x86\bin\node.exe: Access is denied.
error loading plugin commands
error loading plugin topics
error loading plugin commands
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: No such file or directory - "C:/Users/adamk/.heroku/heroku-cli.exe" plugins (Errno::ENOENT)
Command: heroku plugins
Version: heroku/toolbelt/3.42.3 (i386-mingw32) ruby/1.9.3
Error ID: 65ccb27b99e8450aba316ff617b544c0
More information in C:/Users/adamk/.heroku/error.log
OK I fixed the problem. It is failing because it is trying to rename to an existing file, once I deleted the file it was able to proceed installing the plugins and now everything is fine.
Heroku toolbelt does not have permission to write to the .heroku folder on your machine. You can try using sudo but I would suggest you chown the home folder for your user to run it without using sudo
I have a meteor project created with meteorite under version control and I'm trying to deploy it to Heroku using the heroku buildpack oortcloud/heroku-buildpack-meteorite but I this error:
! Heroku push rejected, no Cedar-supported app detected
Is it a problem with the build package or I need extra configuration in my app?, It's the first time I deploy an App to heroku so I'm not very familiarized with it.
As I mentioned in the question I'm very new to Heroku and this time I made a silly mistake.
In the buildpackage documentation it says you just need to use heroku create --stack cedar --buildpack https://github.com/oortcloud/heroku-buildpack-meteorite.git command and then git push. What I did't realized was that the command creates a new app in heroku and I had mine created already.
So the solution is:
heroku config:add BUILDPACK_URL=https://github.com/oortcloud/heroku-buildpack-meteorite.git
Trying to push to heroku.
When I type: heroku create
getting this message.
! No account specified.
!
! Run this command with --account
!
! You can also add it as a git config attribute with:
! git config heroku.account work
Using Rails 3.1.1
Help would be appreciated.
Looks like you've installed the Heroku Accounts plugin which allows you switch between multiple heroku accounts - follow the instructions here https://github.com/ddollar/heroku-accounts to add an account for it to use
type in gem install heroku
Then upload rsa key of github to heroku
$ heroku keys:add
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
Once you key in configured with heroku and github with command all your code goes to github and from there to Heroku
git push heroku master
and soon you will see these messages
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Detected Rails is not set to serve static_assets