简体   繁体   English

我在哪个终端运行这些命令?

[英]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:我正在尝试使用libwebp创建一个 buildpack,并且我正在尝试遵循本教程,该教程以以下命令开头:

  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 上的应用程序终端中运行?

heroku create should be run on your local machine. heroku create应该在您的本地计算机上运行。 This creates a new app on Heroku , so if you already have an app to work with it may not be necessary.会在 Heroku 上创建一个新应用程序,因此如果您已经有一个应用程序可以使用它可能没有必要。

heroku run bash should also be run on your local machine. heroku run bash也应该在本地计算机上运行。 This spins up a one-off dyno for your app and runs the command bash on it .将为您的应用程序启动一个一次性的测功机并在其上运行命令bash

From there, it looks like they want you to continue with curl , tar , etc. in the same shell as the previous step.从那里开始,他们似乎希望您在与上一步相同的 shell 中继续使用curltar等。 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.您可能会发现Heroku CLI 命令文档页面很有帮助。

All these commands you should run on your local terminal (bash, etc.)您应该在本地终端(bash 等)上运行所有这些命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以同时运行一个Rails Server并通过终端向我的Rails Project键入命令吗? - Could I run a Rails Server and type commands to my Rails Project through terminal at the same time? 如何从Rails以root身份运行命令? - How do I run commands as root from Rails? 如何使用 Ruby 在远程服务器上运行 shell 命令? - How do I run shell commands on a remote server with Ruby? 重新启动后,Mac终端无法运行大多数命令 - Mac Terminal can't run most commands after restarting it Ruby on Rails:如何编写rake文件以运行单个Cucumber命令 - Ruby on Rails: How do I write a rake file to run individual cucumber commands 如何运行两个命令作为单个 docker-compose“命令”的一部分? - How do I run two commands as part of a single docker-compose "command"? 在 VSCode 中使用 Solargraph,我是否需要为每个 Ruby 或 Rails 项目运行来自 solargraph 文档的命令? - Using Solargraph in VSCode, do I need to run the commands form the solargraph docs for each Ruby or Rails project? 我可以干运行/ sandbox sql命令吗? - Can I dry run/sandbox sql commands? 在终端中运行bundle exec时出错 - Error when I run bundle exec in terminal 如何配置SSL以在Rails 4应用程序中针对信用卡和登录用例运行? - Which actions do I configure SSL to run against in a Rails 4 app for a credit card and login use case?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM