Running Quirrel alongside a Remix app as a single pm2 process #1157
christopherpickering
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Hi @christopherpickering! If the token vanishes after a restart of Quirrel, then it sounds like Quirrel does not persist the tokens. Have you connected your Quirrel instance to a Redis installation with persistence enabled? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was running quirrel (cron jobs) and a remix app as two pm2 processes and found that when the quirrel process restarted it would loose connection to the remix app. It seems that the token changed, but no errors showed.
Here's an example remix
server.ts
file that embeds the quirrel server into the remix app so you only need to start a single pm2 process, and if it restarts it will correctly load the quirrel cron jobs.You need to have a few env vars set:
Then the server file:
Beta Was this translation helpful? Give feedback.
All reactions