-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate fetch emails script from a template to improve performance
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use bf | ||
bf env load | ||
|
||
def main [] { | ||
# generate fetch email cron script | ||
let fetch_emails = $"(bf env CRON_D)/1min/fetch-emails" | ||
bf write $"Generating ($fetch_emails)." | ||
bf esh template $fetch_emails | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
set -euo pipefail | ||
export BF_E=`basename ${0}` | ||
|
||
|
||
#====================================================================================================================== | ||
# Fetch emails manually. | ||
# This is because on Alpine the scheduler doesn't fetch emails correctly. | ||
#====================================================================================================================== | ||
|
||
php <% bf-env FS_SRC %>/artisan freescout:fetch-emails >> <% bf-env FS_LOGS %>/fetch-emails.log |