Answer the question
In order to leave comments, you need to log in
How to set up a server for go and react?
How to set up a server for go and react?
What should be in Procfile?
and in package.json scripts?
sees only Go.
in Procfile - web: bin/soc11
But it doesn't work like this..: in Procfile - web: npm start
in logs:
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/go
-----> Go app detected
-----> Fetching stdlib.sh.v8... done
----->
Detected go modules via go.mod
----->
Detected Module Name: github.com/afedorov78/soc11
----->
!! The go.mod file for this project does not specify a Go version
!!
!! Defaulting to go1.12.17
!!
!! For more details see: https://devcenter.heroku.com/articles/go-apps-with-modules#build-configuration
!!
-----> Using go1.12.17
-----> Determining packages to install
Detected the following main packages to install:
github.com/afedorov78/soc11
-----> Running: go install -v -tags heroku github.com/afedorov78/soc11
github.com/afedorov78/soc11
Installed the following binaries:
./bin/soc11
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 7.8M
-----> Launching...
Released v21
https://soc11.herokuapp.com/ deployed to Heroku
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question