AbsRoot returns absolute path to the working directory
()
| 52 | |
| 53 | // AbsRoot returns absolute path to the working directory |
| 54 | func (h *Handler) AbsRoot() (string, error) { |
| 55 | var absRoot string |
| 56 | |
| 57 | if len(h.Root) > 0 { |
| 58 | absRoot = h.Root |
| 59 | } else { |
| 60 | absRoot = filepath.Dir(h.Procfile) |
| 61 | } |
| 62 | |
| 63 | return filepath.Abs(absRoot) |
| 64 | } |
| 65 | |
| 66 | // Run runs the start command |
| 67 | func (h *Handler) Run(c *cli.Context) error { |