Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Build and (re)start go web apps after saving/creating/deleting source files.

License

NotificationsYou must be signed in to change notification settings

gravityblast/fresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Join the chat at https://gitter.im/pilu/freshBuild Status

Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file.

If the web framework you are using supports the Fresh runner, it will show build errors on your browser.

It currently works withTraffic,Martini andgocraft/web.

Installation

go install github.com/gravityblast/fresh@latest

Usage

cd /path/to/myapp

Start fresh:

fresh

Fresh will watch for file events, and every time you create/modify/delete a file it will build and restart the application.Ifgo build returns an error, it will log it in the tmp folder.

Traffic already has a middleware that shows the content of that file if it is present. This middleware is automatically added if you run a Traffic web app in dev mode with Fresh.Check the_examples folder if you want to use it with Martini or Gocraft Web.

fresh uses./runner.conf for configuration by default, but you may specify an alternative config filepath using-c:

fresh -c other_runner.conf

Here is a sample config file with the default settings:

root:              .tmp_path:          ./tmpbuild_name:        runner-buildbuild_log:         runner-build-errors.logvalid_ext:         .go, .tpl, .tmpl, .htmlno_rebuild_ext:    .tpl, .tmpl, .htmlignored:           assets, tmpbuild_delay:       600colors:            1log_color_main:    cyanlog_color_build:   yellowlog_color_runner:  greenlog_color_watcher: magentalog_color_app:

Author

More

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Build and (re)start go web apps after saving/creating/deleting source files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp