Skip to content

Repository files navigation

DevOp Dev Server Build StatusBuild status

Devop is a development server for Go, in devop you can declare commands that will be runned when any file system modification happens.

Example you can declare a command to run "go build ." on every modification in the file system that match the file name that end with .go.

File system modifications:

File changed, renamed, removed or created.

Devop lets you program in go as you do with PHP, just refresh the page and you get the last changes.

How to use

First install devop with

go get github.com/jhsx/devop

Create an devop.yml in the root of your project, then run devop and enjoy your programing time :D.

Example devop.yml file:

devPort: 8888# the port used by the proxy serverappPort: 8080# the port used by your appcommands: #your commandsgobuild: #command namematch: "\\.go$"# regex pattern, this pattern is tested on all modified filescommand: "go build -i -gcflags='-N -l'"# the command that need to be executed when a pattern matched on modificationswait: true # need to wait this command to finish before continue with the next commandstderr: true # want to print the stderrstdout: true # want to print the stdoutcontinue: gorun # when this command finish to run continue with command "gorun"gorun: # this command don't have a match, so the command will only run when an other command say's continue: to this command namecommand: ./yourappenv: # list of env
- MONGOSERVER=localhost
- MONGODB=test
- PORT=:8080
- MODE=DEVstderr: truestdout: trueonexit: rm yourapp # command to be executed when devop exits

About

Like nodemon for Go

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages