Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pushing to Heroku Mern Stack affiliated commands #4

Open
WahomeKezia opened this issue Jan 4, 2024 · 1 comment
Open

Pushing to Heroku Mern Stack affiliated commands #4

WahomeKezia opened this issue Jan 4, 2024 · 1 comment

Comments

@WahomeKezia
Copy link
Collaborator

heroku buildpacks:clear
heroku buildpacks:add --index 1 heroku/nodejs
heroku buildpacks:add --index 2 https://github.com/mars/create-react-app-buildpack.git

@WahomeKezia
Copy link
Collaborator Author

WahomeKezia commented Jan 4, 2024

this command will resolve this error

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-22 stack
remote: -----> Determining which buildpack to use for this app
remote:  !     No default language could be detected for this app.
remote:                         HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote:                         See https://devcenter.heroku.com/articles/buildpacks
remote:
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 5310cbb1d8694a475ef7581e378e013c889c7f25
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 5310cbb1d8694a475ef7581e378e013c889c7f25
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to reddit-clone-kezia.
remote:
To https://git.heroku.com/reddit-clone-kezia.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/reddit-clone-kezia.git'```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant