Heroku Deploy errror "missing required flag" [duplicate] - heroku

This question already has answers here:
Heroku missing required flag: -a,
(11 answers)
Heroku CLI - How to solve the Error: Missing required flag: -a --app APP?
(3 answers)
missing required flag heroku tail
(2 answers)
How to avoid the --app option with heroku CLI?
(1 answer)
How does `heroku config` know what app to use?
(1 answer)
Closed 4 months ago.
I'm deploying heroku with github but I'm getting some errors. these are Heroku CLI errors. but I'm deploy with github ?
How can i fix that ?

Related

cant install laravel in composer [duplicate]

This question already has answers here:
Composer cannot download files
(3 answers)
Closed 3 months ago.
Tried creating a new project on a corporate proxy and suddenly composer cant create a laravel project.
"curl error 28 while downloading https://repo.packagist.org/packages.json: Connection timed out after 10001 millisec
onds"
been trying different stackoverflow solutions but none of them solves my problem.
running "composer diagnose"
hello you can try this,
Try clearing Composer's cache by running composer clear-cache remove composer.lock and composer install
Fixed the problem by running
SET HTTP_PROXY=http://username:password#IP:port && php composer.phar install
source:
Composer cannot download files

I try to disable this in heroku cli but show this error [duplicate]

This question already has answers here:
Heroku missing required flag: -a,
(11 answers)
How does `heroku config` know what app to use?
(1 answer)
How to avoid the --app option with heroku CLI?
(1 answer)
Closed 6 months ago.
it try this:
heroku config:set DISABLE_COLLECTSTATIC=1
» Warning: heroku update available from 7.53.0 to 7.62.0.
» Error: Missing required flag:
» -a, --app APP app to run command against
» See more help with --help
when i write --help, offer l\me like this heroku config:set DISABLE_COLLECTSTATIC=1 !!!

How to schedule PostgreSql procedure using Heroku scheduler?

I am trying to schedule PostgreSql procedure using Heroku scheduler. I tried heroku pg:psql -c "call procedure_name();" --app app-name but gets the error from scheduler "bash: heroku: command not found"
That error is telling you important information. The Heroku CLI is not present in your environment, so bash complains that heroku isn't a command that it recognizes.
If you want to run heroku commands from your application you'll need to include the cli buildpack when you build your application to make sure it's properly bundled. Once you've included the buildpack and triggered a new build, this should work.

Running bash on heroku won't work

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

Heroku meteor/meteorite deployment

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

Resources