alu-rwa-webdev / reddit-clone-WahomeKezia

A full stack reddit-clone which uses MERN and API documented on Swagger
https://app.swaggerhub.com/apis-docs/keziawaho/reddit-clone_api/1.0.0
Other
1 stars 1 forks source link

Pushing to Heroku Mern Stack affiliated commands #4

Open WahomeKezia opened 8 months ago

WahomeKezia commented 8 months ago

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 commented 8 months ago

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'```