A
A
Afedorov782022-01-09 16:15:48
Heroku
Afedorov78, 2022-01-09 16:15:48

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


test project itself - https://github.com/AFedorov78/soc11/tree/master

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2022-01-10
@dimonchik2013

full of manuals for this bundle
https://medium.com/geekculture/full-stack-applicat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question