Comments (6)
There are a few other changes needed for deploying with Go 1.12+, such as the required "main" package (unable to deploy without "package main") and changes in dependency management. See [1]. A rewrite of at least part of the application will likely be needed.
[1] https://cloud.google.com/appengine/docs/standard/go/go-differences
from ga-beacon.
Yeah, saw that and was able to get past that by renaming the package. But the next steps were beyond my skillset unfortunately.
from ga-beacon.
I have added main.go
as suggested in https://cloud.google.com/appengine/docs/standard/go/go-differences#migrating-appengine-sdk. But now with gcolud app deploy
it shows the root of you app needs to be package "main" (currently "beacon")
.
from ga-beacon.
@aravind-j
in your go file, you need to add package main
also, add this method after init
func main() {
http.HandleFunc("/", indexHandler)
port := os.Getenv("PORT")
if port == "" {
port = "8080"
log.Printf("Defaulting to port %s", port)
}
log.Printf("Listening on port %s", port)
if err := http.ListenAndServe(":"+port, nil); err != nil {
log.Fatal(err)
}
}
but it is failing on appengine import
I have no idea how to fix that
from ga-beacon.
@igrigorik I know you are busy. Do you mind adding new deployment instructions
from ga-beacon.
Resolved via ebbc061
from ga-beacon.
Related Issues (20)
- Not reporting hits with /path in URL HOT 1
- Custom Badge/Image HOT 1
- Unable to deploy on own app engine HOT 6
- What's the purpose? HOT 1
- Not working anymore?
- How works this with Camo? HOT 2
- Add a Dockerfile HOT 1
- Is this still working? HOT 4
- Analytics are logging excluded (filtered) IP HOT 2
- Only RealTime Reports Work HOT 1
- Is it possible to use ga-beacon in gist? HOT 1
- Cross Domain Tracking Support HOT 1
- track city/country HOT 1
- ga-beacon.appspot.com is down HOT 1
- Go 1.9 is no longer available. Please refer to https://goo.gl/aESk5L for more information. HOT 2
- Are you sure it's unusable with Github? HOT 3
- ga-beacon.appspot.com is down HOT 9
- Could not import "google.golang.org/appengine/delay"
- ban
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ga-beacon.