简体   繁体   中英

In which terminal do I run these commands?

I'm trying to create a buildpack with libwebp , and I'm trying to follow this tutorial , which starts with the following commands:

  1. heroku create buildpack-stager
  2. heroku run bash --app buildpack-stager
  3. curl -O https://mupdf.googlecode.com/files/mupdf-1.3-source.tar.gz
  4. tar -xvzf mupdf-1.3-source.tar.gz
  5. ...

Should these initial commands be run in the terminal of my application on heroku?

heroku create should be run on your local machine. This creates a new app on Heroku , so if you already have an app to work with it may not be necessary.

heroku run bash should also be run on your local machine. This spins up a one-off dyno for your app and runs the command bash on it .

From there, it looks like they want you to continue with curl , tar , etc. in the same shell as the previous step. The effect will be that these commands are run on the one-off dyno you're using, but you don't need to change terminals or anything.

You might find the Heroku CLI commands documentation page helpful.

All these commands you should run on your local terminal (bash, etc.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM