Skip to content

Instantly share code, notes, and snippets.

@kmkmjhyiiiu
Last active January 26, 2021 12:27
Show Gist options
  • Save kmkmjhyiiiu/dc759c172cdd5d25631cf93070ef7ced to your computer and use it in GitHub Desktop.
Save kmkmjhyiiiu/dc759c172cdd5d25631cf93070ef7ced to your computer and use it in GitHub Desktop.
Run artisan command every second
#!/usr/bin/env bash
cd "/var/sunlounge/prod";
while true; do
echo "Running Command:";
php artisan route:call api/vipps/poll;
echo "Done!";
sleep 1
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment