apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

bug: Missing directory “/output/logs/”

Open idbeta opened this issue 6 years ago • 5 comments

After deploy manually, when I run $api/run.sh & it will prompt an error ` panic: couldn't open sink "/Users/idbeta/1106/apisix-dashboard/output/logs/error.log"

  • Please describe your requirements or improvement suggestions.`

It was correct after I manually added this directory“/output/logs/”

idbeta avatar Nov 06 '20 07:11 idbeta

the output/logs should be created in api/run.sh

membphis avatar Nov 07 '20 00:11 membphis

we already have logs folder in api, why we choose a new temporary output?

it makes me confused.

membphis avatar Nov 07 '20 00:11 membphis

here is an example of APISIX, please ref: https://github.com/apache/apisix/blob/master/Makefile#L87

membphis avatar Nov 07 '20 00:11 membphis

we already have logs folder in api, why we choose a new temporary output?

it makes me confused.

The output directory is the final directory to save the binary file, config file, the frontend's files, and so on. It's the directory that is used to save the Build-after product. We should not generate those products under the source codes.

juzhiyuan avatar Nov 07 '20 01:11 juzhiyuan

ok, got it. thansk for your explain

membphis avatar Nov 07 '20 03:11 membphis