i am having trouble configuring my heroku app - heroku

PS E:\PHP\USSD> npx heroku git:clone -a corscript
npm WARN config global --global, --local are deprecated. Use --location=global instead.
» Error: You do not have access to the app corscript.
»
» Error ID: forbidden

Related

laravel heroku Vite manifest not found at: /app/public/build/manifest.jso

after uploading my project Laravel in Heroku say "Vite manifest not found at: /app/public/build/manifest.json"
it work perfectly in localhost but in Heroku not working.
this is a preview of the problem
https://res.cloudinary.com/wanis4007/image/upload/v1656872417/Screenshot_2022-07-03_211622_ohzgs5.png
I run this code before push the project in Heroku
npm install
npm run dev
npm run build
any suggestion ?
okay , the solution is to add both nodejs and php buildpacks to the project before deployment (you can do this also after deployment but you have to redeploy the project)
heroku buildpacks:set heroku/php
heroku buildpacks:set heroku/nodejs
and make sure you have the two buildpacks (php and node js) in your project by using this code
heroku buildpacks
note : you can add buildpacks with heroku dashboard in setting section
I fixed mine:
This solution is inspired by zneharks
$ heroku plugins:install buildpack-registry
$ heroku plugins:install buildpacks
Solution of zneharks
And I set nodejs
$ heroku buildpacks
Or
$ heroku buildpacks:set heroku/nodejs
I solved my code with this
$ heroku buildpacks:add --index 1 heroku/nodejs and
$ heroku buildpacks
after running this in my terminal, I adjusted my code and push to heroku again.
Note: The --index 1 means nodejs build pack will run first before php. PHP Buildpack has already been reinstalled with laravel/heroku.
when you run
heroku buildpacks
it should give you the two buildpacks which is
$ heroku/nodejs and heroku/php

Heroku Error? Saying that my package.json is missing things

When using Heroku, I get this error message in Terminal:
(node:59291) Error Plugin: heroku: could not find package.json with {
type: 'core',
root: '/usr/local/lib/node_modules/heroku',
name: '#heroku-cli/plugin-buildpacks'
}
module: #oclif/config#1.13.2
task: loadPlugins
plugin: heroku
root: /usr/local/lib/node_modules/heroku
See more details with DEBUG=*
Not sure where to start to fix this.
I tried installing Heroku via NPM when I already had the CLI installed, not sure if that's the cause...
I had Heroku installed both via brew and npm i heroku -g the -g made it global which was installed in the location mentioned in the error. I uninstalled the npm version and it's back to normal. npm uninstall heroku -g

"Missing list of packages to add to your project" error while install Heroku deploy plugin

I want deploy my JHipster application to Heroku, but when I run command "jhipster heroku", I received the following error:
Installing Heroku CLI deployment plugin
× { Error: Command failed: heroku plugins:install heroku-cli-deploy --force
Installing plugin java... yarn add v1.12.3
Installing plugin java... [1/4] Resolving packages...Installing plugin java... [2/4] Fetching packages...Installing plugin java... [3/4] Linking dependencies...Installing plugin java... [4/4] Building fresh packages...Installing plugin java... success Saved 1 n
ew dependency.Installing plugin java... info Direct dependenciesInstalling plugin java... └─ #heroku-cli/plugin-java#3.0.1Installing plugin java... Done in 2.97s.Installing plugin java... installed v3.0.1
Installing plugin --force... yarn add v1.12.3
Installing plugin --force... info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.Installing plugin --force... !
error Missing list of packages to add to your project.
Error: yarn add --force#latest --non-interactive --mutex=file:C:/Users/start/AppData/Local/heroku/yarn.lock --preferred-cache-folder=C:/Users/start/AppData/Local/heroku/yarn --check-files --registry=https://registry.npmjs.org exited with code 1
at ChildProcess.forked.on (C:/Program Files/heroku/client/node_modules/#oclif/plugin-plugins/lib/yarn.js:31:28)
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
killed: false,
code: 1,
signal: null,
cmd: 'heroku plugins:install heroku-cli-deploy --force' }
Versions of tools:
JHipster: 5.1.0
Heroku: heroku/7.19.4 win32-x64 node-v11.3.0
Yarn: 1.7.0
Node: v8.10.0
I've already tried out the following commands:
heroku plugins:install java - successfully installed
heroku plugins:install heroku-cli-deploy --force -
Then an error occurs:
Installing plugin java... installed v3.0.1
error Missing list of packages to add to your project.
Installing plugin --force... !
Error: yarn add --force#latest --non-interactive --mutex=file:C:/Users/start/AppData/Local/heroku/yarn.lock --preferred-cache-folder=C:/Users/start/AppData/Local/heroku/yarn --check-files --registry=https://registry.npmjs.org exited with code 1
at ChildProcess.forked.on (C:/Program Files/heroku/client/node_modules/#oclif/plugin-plugins/lib/yarn.js:31:28)

Heroku stop`ed working after linux virtual machine crashed

Hi I have my Linux as a virtual machine. When I was making heroku run rake db:seed it creshed and was shut down. After I run it again when I try to seed heroku I get:
saasbook#saasbook:~/rails_pro/vofr$ heroku run
! Error in heroku-run:
! Cannot read property 'filter' of undefined
! See /home/saasbook/.heroku/error.log for more info.
And this is my error-log:
2016/02/29 17:23:27 heroku-cli: Installing core plugins...
NULNULNULNULNULNUL.....NUL
29 21:26:16 Error during run:null
2016/02/29 21:26:16 TypeError: Cannot read property 'filter' of undefined
at [eval]:36:28
at Object.exports.runInThisContext (vm.js:54:17)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:413:34)
at node.js:544:27
at _combinedTickCallback (node.js:370:9)
at process._tickCallback (node.js:401:11)
In the end I ended with totally removing the heroku.
sudo apt-get --purge remove heroku
sudo apt-get --purge remove heroku-toolbelt
rm -rf /usr/local/heroku
rm -rf ~/.heroku
and then :
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku --version

how do you run heroku client commands on travis-ci?

what can i add to my .travis.yml to run heroku client commands?
e.g. before deploy:
$ heroku maintenance:on
$ heroku pgbackups:capture --expire
and after deploy:
$ heroku maintenance:on
i've tried adding those commands to before_deploy in .travis.yml, but it doesn't have access to the heroku cli tool.
bonus points if i can do this on the app level, e.g. do backups on the production branch, but not staging.
I just installed Heroku toolbelt in a build container. That's how it looks in my build:
sudo: required
before_script:
# this install.sh script requires sudo
- wget -qO- https://toolbelt.heroku.com/install.sh | sh
script:
- /usr/local/heroku/bin/heroku restart --app my-heroku-app-name # requires HEROKU_API_KEY env variable
Note: installing Heroku requires sudo privilege (sudo: required) and if you have to access your app - $HEROKU_API_KEY environment variable must be set.
You might be able to everything you need with the Heroku deployment support available on Travis CI.
If you need to do more, you need to install Heroku toolbelt, and figure out how to do what you want.

Resources