You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pocketbase.exe version 0.22.7
Error: unknown command "serve --dir 'C:\\Users\\toryb\\source\\repos\\Failreactor-Pocketbase - JS\\pb_data'" for "pocketbase.exe"
Run 'pocketbase.exe --help' for usage.
I have my index.js and my /pb_data in the same folder, I think most people will do this. Otherwise, wouldn't upgrading the PB version via GotBot create a new pb_data?
Anways, Gobot is not correctly passing the args to pocketbase it seems. As running the command manually works fine:
import{gobot}from"gobot";import{fileURLToPath}from"url";import{dirname,join}from"path";// ES Module way to re-create __dirname :/const__filename=fileURLToPath(import.meta.url);const__dirname=dirname(__filename);constbot=awaitgobot(`pocketbase/pocketbase`);bot.run([`-v`]);bot.run([`serve`,`--dir=${join(__dirname,"pb_data")}`]);
I have my index.js and my
/pb_data
in the same folder, I think most people will do this. Otherwise, wouldn't upgrading the PB version via GotBot create a new pb_data?Anways, Gobot is not correctly passing the args to pocketbase it seems. As running the command manually works fine:
C:\Users\toryb\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.7\x64\win32\pocketbase.exe serve --dir 'C:\\Users\\toryb\\source\\repos\\Failreactor-Pocketbase - JS\\pb_data'
The text was updated successfully, but these errors were encountered: