mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix static dir
This commit is contained in:
1 file changed
+1
-1
@@ -96,7 +96,7 @@ export async function apply(ctx: Context) {
|
|||||||
for (const f of global.addons) {
|
for (const f of global.addons) {
|
||||||
const dir = path.join(f, 'public');
|
const dir = path.join(f, 'public');
|
||||||
// eslint-disable-next-line no-await-in-loop
|
// eslint-disable-next-line no-await-in-loop
|
||||||
if (await fs.pathExists(dir)) await fs.copy(dir, '/root/.hydro/static');
|
if (await fs.pathExists(dir)) await fs.copy(dir, path.join(os.homedir(), '.hydro/static'));
|
||||||
}
|
}
|
||||||
await ctx.parallel('app/listen');
|
await ctx.parallel('app/listen');
|
||||||
logger.success('Server started');
|
logger.success('Server started');
|
||||||
|
|||||||
Reference in new issue
Block a user