Can't push to the heroku

后端 未结 9 758
猫巷女王i
猫巷女王i 2020-12-13 02:02

I was pushing the current git repository into the heroku. That online application was developed using Scala and IntelliJ. And I don\'t know how to fix this error.

         


        
相关标签:
9条回答
  • 2020-12-13 02:22

    You could also select webpack build manually from the UI

    0 讨论(0)
  • 2020-12-13 02:22

    You need to follow the instructions displayed here, on your case follow scala configuration:

    https://devcenter.heroku.com/articles/getting-started-with-scala#introduction

    After setting up the getting started pack, tweak around the default config and apply to your local repository. It should work, just like mine using NodeJS.

    HTH! :)

    0 讨论(0)
  • 2020-12-13 02:23

    There has to be a .git directory in the root of your project.

    If you don't see that directory run git init and then re-associate your remote.

    Like so:

    heroku git:remote -a herokuAppName
    git push heroku master
    
    0 讨论(0)
  • 2020-12-13 02:23

    Specify the buildpack while creating the app.

    heroku create appname --buildpack heroku/python
    
    0 讨论(0)
  • 2020-12-13 02:25

    Read this doc which will explain to you what to do.
    https://devcenter.heroku.com/articles/buildpacks

    Setting a buildpack on an application

    You can change the buildpack used by an application by setting the buildpack value.
    When the application is next pushed, the new buildpack will be used.

    $ heroku buildpacks:set heroku/php
    

    Buildpack set. Next release on random-app-1234 will use heroku/php.
    Run git push heroku master to create a new release using this buildpack.

    This is whay its not working for you since you did not set it up.

    ... When the application is next pushed, the new buildpack will be used.

    You may also specify a buildpack during app creation:

    $ heroku create myapp --buildpack heroku/python
    
    0 讨论(0)
  • 2020-12-13 02:25

    If you are a python user -
    Create a requirements.txt file preferably using pip freeze > requirements.txt.
    Add, commit and try pushing it again.

    If this doesn't work try deleting .git (beware this might remove the associated git history) and follow the above steps again.

    Worked for me.

    0 讨论(0)
提交回复
热议问题