devop

command module
v0.0.0-...-0106ed7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

README

DevOp Dev Server Build Status Build 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 server
appPort: 8080 # the port used by your app
commands: #your commands
  gobuild: #command name
    match: "\\.go$" # regex pattern, this pattern is tested on all modified files
    command: "go build -i -gcflags='-N -l'" # the command that need to be executed when a pattern matched on modifications
    wait: true # need to wait this command to finish before continue with the next command
    stderr: true # want to print the stderr
    stdout: true # want to print the stdout
    continue: 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 name
    command: ./yourapp
    env: # list of env
      - MONGOSERVER=localhost
      - MONGODB=test
      - PORT=:8080
      - MODE=DEV
    stderr: true
    stdout: true
    onexit: rm yourapp # command to be executed when devop exits

Documentation

Overview

Copyright 2016 José Santos <henrique_1609@me.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2016 José Santos <henrique_1609@me.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL