Re: [pylons-discuss] Ensuring the server is running from commandline?

2025-01-10 Thread Jonathan Vanasco
For deployments, I agree with you. Our pipeline works similar to what you describe. We open-sourced this tool and I'm cleaning some stuff up for a release. I am trying to safeguard against the most likely user-errors based on past experiences. The hashing is working well, and was inspired by

Re: [pylons-discuss] Ensuring the server is running from commandline?

2025-01-10 Thread Ian Wilson
I didn't understand the issue at first. The thing you are trying to avoid is that a script is run with the wrong configuration file because multiple configuration files exist on every server instance, ie. a production.ini is on the staging server and a staging.ini is also on the production server?

Re: [pylons-discuss] Ensuring the server is running from commandline?

2025-01-10 Thread Jonathan Vanasco
That just overly complicates things by requiring Celery and having to set it up. Some commandline scripts require Pyramid to be running, others don't. I'd like to keep this simple. On Friday, January 10, 2025 at 3:48:30 AM UTC-5 Luke Crooks wrote: > "I invoke periodic operations that are ofte

Re: [pylons-discuss] Ensuring the server is running from commandline?

2025-01-10 Thread Luke Crooks
"I invoke periodic operations that are often long running" If you invoke celery to manage these, and have celery execute from inside the pyramid, it will be running if the pyramid application is... Then execute any shell scripts with subprocess? Regards, -- Luke Crooks Solent Wholesale Carpets w