Open kylekyle opened 8 years ago
thanks. yes, it is joined to root
- which is lazily inited to app_file/..
. see the following lines:
https://github.com/kenichi/angelo/blob/master/lib/angelo/base.rb#L54 https://github.com/kenichi/angelo/blob/master/lib/angelo/base.rb#L142-L144 https://github.com/kenichi/angelo/blob/master/lib/angelo/base.rb#L111-L119
you can set it relatively, using ../..
etc. if you think it would be useful to have absolute path support, i would be open to a PR that checks for /
at the beginning of the string maybe or something like that.
what are your thoughts?
If you pass an absolute directory to
public_dir
, it will be concatenated to the end of__FILE__
, for something like this:/Users/kyle/server/lib/Users/kyle/public