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
Note that I was only able to get it work using Git Bash. running command directly in cmd or powershell did not work
Below are the steps:
Create a bash file with the below script
#!/bin/bashcd /D/Source_Code/GitHub/promnesia # this is the path to my local clone of the promnesia repo# echo Change Directory done
./scripts/promnesia serve
Save the file in your PC. I saved it here: %USERPROFILE%\Downloads\promnesiaServe.sh
Then open the Task Scheduler in Windows from the start menu
Click "Create a Basic Task"
Provide a name to the task - I used Run Promnesia Serve
in the Next Scree, choose a Trigger - I chose When computer starts and click Next
In the Next Screen, choose Start a Program and click Next
Then enter the below values in the respective input fields:
a. Program/Script: use either cmd or C:\Windows\System32\cmd.exe
b. Add arguments (optional): input /c ""C:\Program Files\Git\bin\bash.exe" --login -i -- %USERPROFILE%\Downloads\promnesiaServe.sh"
Click Next and Finish to create a task. This will be automatically run when you restart your Windows
Note that sometimes the Task Scheduler doesn't start the task on Windows Start, so its better to add a 5 mins delay in the Trigger, which will ensure the task to be run.
The documentation mentions that we can use
promnesia install-server
in Linux and OSX to autostart promnesia server, but it doesn't talk about Windows.Is there a way to do this in Windows?
The text was updated successfully, but these errors were encountered: