Menu

Introduce GreyShip
πŸ“°

Introduce GreyShip

DEV Community: goΒ·HakiΒ·12 days ago
#tdEWI9sf
#devtogo#devto#dev#greyship#server
Reading 0:00
15s threshold

I have been building Greyship, a serverless platform made only for Go. It is open source (AGPL-3.0) and runs on a server you own. Today I am releasing it publicly.

The problem

I wanted what serverless promises (push code, get a URL, pay nothing while idle) without wrapping my handlers, writing a Dockerfile, or renting capacity I do not use. The platforms that come close either run your app like an always-on server or ask you to change how you write it.

What Greyship does

You bring a normal Go project: a go.mod and one or more main packages. You run:

grey deploy

Enter fullscreen mode

Exit fullscreen mode

Greyship reads your code (it never runs it) and finds every main package. One that starts an HTTP server becomes a web service with an HTTPS URL. The rest become workers. A release command, such as a migration, runs before the new version starts.

This is a real run:

$ grey deploy Created project you/testapi

testapi web .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.