Skip to content

Commit

Permalink
autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
HPPinata authored Feb 1, 2024
1 parent a7cbc06 commit 9d64e02
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manual/automatic.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,15 @@ deactivate
```
screen -dmS focus bash -c 'cd Fooocus; source fooocus_env/bin/activate; pip install -r requirements_versions.txt; python entry_with_update.py'
```

### Cron:
```
cat <<'EOL' | crontab -
SHELL=/bin/bash
BASH_ENV=/etc/profile
@reboot screen -dmS server bash -c 'PYTHON=python3.10 ./automatic/webui.sh --cors-origins=http://localhost:5173 --theme dark'
@reboot screen -dmS focus bash -c 'cd Fooocus; source fooocus_env/bin/activate; pip install -r requirements_versions.txt; python entry_with_update.py'
EOL
crontab -l
```

0 comments on commit 9d64e02

Please sign in to comment.