Как настроить сервер для go и react?
Что должно быть в Procfile?
и в package.json scripts?
видит только Go.
в Procfile - web: bin/soc11
А вот так не работает..: в Procfile - web: npm start
в логах:
-----> 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
сам тест проект -
https://github.com/AFedorov78/soc11/tree/master