forked from cortesi/modd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# A basic modd.conf file for Go development. | ||
|
||
# Run go test on ALL modules on startup, and subsequently only on modules | ||
# containing changes. | ||
**/*.go { | ||
prep: go test @dirmods | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# An example from a Python project. The project also contains a front-end, | ||
# managed similar to the example in frontend.conf | ||
|
||
# Run redis on startup, and restart it whenever its config file changes | ||
cnf/redis.conf { | ||
daemon: redis-server ./cnf/redis.conf | ||
} | ||
|
||
# Run the test suite if a source or test file changes | ||
src/**/*.py tests/** { | ||
prep: nosetests ./tests | ||
} | ||
|
||
# Start the server, and restart it whenever a source file changes | ||
# Devd is used in reverse proxy mode to manage livereload | ||
src/**/*.py ./server { | ||
# Server runs on port localhost:8080 | ||
daemon: ./server | ||
daemon: devd -olm http://localhost:8080 | ||
} |