Comments (4)
hi @justinfx, can you please post your config file?
from fresh.
It's the default sample config, with just the root value changed:
root: domain.com/me/myProject/src
tmp_path: ./tmp
build_name: runner-build
build_log: runner-build-errors.log
valid_ext: .go, .tpl, .tmpl, .html
build_delay: 600
colors: 1
log_color_main: cyan
log_color_build: yellow
log_color_runner: green
log_color_watcher: magenta
log_color_app:
from fresh.
@justinfx if you are running fresh
from the myProject folder, can you try setting ./src
as root?
from fresh.
Hi, sorry it took me so long to reply on this issue.
Yes, changing to ./src
as the root does allow fresh to run, but it is only monitoring that src directory as the root, which means you must have go files in the root of your project for it to monitor anything.
I realize that fresh has to know where to issue a build in terms of the source, but it might be nice to be able to express the src root separately from the monitor root. Something like:
- Keep root the way it is, acting as both the src root and monitor root
- But, if the config specifies src_root, then use that for building the source, and root for watching changes
And it would also be nice if the paths could use [os.ExpandEnv|http://godoc.org/os#ExpandEnv] so that you can use $GOPATH in your path:
root $GOPATH/domain/project
src_root $GOPATH/domain/project/src
This would allow all of the files in the project tree to be monitored, as well as supporting the actual go source files be in a subdirectory. It would probably help support other projects that are multi-language.
Also, in terms of my originally posted issue... fresh does completely panic if you specify a bad path as a root. It might be nice if it legitimately checked the path and died gracefully with "Path does not exist" instead of a "invalid memory address or nil pointer dereference"
from fresh.
Related Issues (20)
- Is there any way to use fresh with Delve debug? HOT 1
- can it support .env file watch?
- fresh maybe makes the gin console log color invalid? HOT 1
- fork/exec tmp/runner-build: no such file or directory HOT 1
- permission denied HOT 1
- zsh: command not found: fresh HOT 2
- Disable logging setting
- How to run go install on file change
- How to provide concrete go file that should be builded without changing root directory?
- Using fresh in docker container will not builds and (re)starts HOT 1
- The correct path could not be found
- 我的deepin下载下来了,不能在终端运行fresh HOT 1
- fresh: command not find HOT 4
- zsh: command not found: fresh HOT 10
- no required module provides package github.com/pilu/fresh; to add it:
- Cannot scan command inputs
- Fresh command not works until run build command HOT 1
- About the issue with hot reloading HOT 1
- 1
- Fresh does not support go mod vendor? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fresh.