Heroku无法找到该应用

时间:2018-08-24 16:03:28

标签: heroku

当我尝试命令时,我正在linux终端上工作-heroku create 可以

Creating app... done, ⬢ frozen-plateau-26000
https://frozen-plateau-26000.herokuapp.com/ | https://git.heroku.com/frozen-plateau-26000.git

但是当我下一次尝试执行heroku open时 我明白了

(node:23086) Error Plugin: install: files attribute must be specified in /home/user/.local/share/heroku/node_modules/install/package.json
module: @oclif/plugin-legacy@1.1.0
plugin: install
root: /home/user/.local/share/heroku/node_modules/install
See more details with DEBUG=*
(node:23086) [ERR_INVALID_CALLBACK] @oclif/plugin-legacy: Plugin mvn: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
/home/user/.local/share/heroku/node_modules/mvn
 ▸    Couldn't find that app.

这是一个Spring Boot应用程序,这是我pom的一部分

    <dependency>
        <groupId>com.heroku.sdk</groupId>
        <artifactId>heroku-maven-plugin</artifactId>
        <version>1.0.3</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-autoconfigure</artifactId>
    </dependency>

</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
        <plugin>
            <groupId>com.heroku.sdk</groupId>
            <artifactId>heroku-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

1 个答案:

答案 0 :(得分:1)

使用此:

heroku open --app <app-name>

--app(别名:-a)是heroku open的必需参数。检查heroku open --help以获得有关命令用法的更多详细信息。