Git Product home page Git Product logo

zeit-serverless's Introduction

Serverless service for ZEIT. Written in Golang.

Deploy your own

You'll want to fork this repository and deploy your own image to primitive.

  1. Click the fork button at the top right of GitHub
  2. Clone the repo to your local machine with git clone URL_OF_FORKED_REPO_HERE
  3. Deploy by running now from the CLI (if you don't already have it, run npm install -g now)

Alternatively, you can do a one-click to deploy with the button below.

Deploy to now

zeit-serverless's People

Contributors

xuthus5 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zeit-serverless's Issues

使用 now dev 运行时报错

now --version
21.0.1

go version go1.16.2 darwin/amd64

操作步骤:

  1. clone 仓库
  2. now dev --debug --listen 8080
  3. 一路 Y/N 之后,访问http://localhost:8080/api/version,保存

先是报错了:

go: cannot find main module, but found .git/config in /Users/shuirong/Code/Golang/zeit-serverless
	to create a module there, run:
	cd ../../../.. && go mod init

通过在根目录,go mod init test解决掉了。
然后遇到第二个错:

api/entrypoint.go:10:2: no required module provides package github.com/jinzhu/gorm; to add it:
	go get github.com/jinzhu/gorm
api/entrypoint.go:11:2: no required module provides package github.com/jinzhu/gorm/dialects/sqlite; to add it:
	go get github.com/jinzhu/gorm/dialects/sqlite
> [debug] [2021-03-27T14:33:57.420Z] Error starting "@vercel/go" dev server: Error: Failed to start dev server for "api/version_go.go" (code=1, signal=null)

这个解决了一会儿搞不定,请问有解决方法吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.