Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Cómo hacer que un script alojado en un servidor se ejecute a una hora determinada

Tengo un script donde actualizo algunas cosas a una tienda Shopify, sin embargo, solo funciona cuando presiono un botón, usando un enrutador de servidor:

 router.post('/sync_shopify_with_set/:id', TokenController.isAValidToken, async (req, res) => { try { await ShopifyController.syncShopifyWithSetState(req.params.id); res.json({ success: true }); console.log('Shopify updated'); } catch (error) { ErrorController.errorCallback(error, res); } });

¿Cómo puedo hacer que, cada vez que el reloj marque las 12 de la noche (CST), la await ShopifyController.syncShopifyWithSetState(req.params.id) se ejecute automáticamente? (Ya sea a través de un enrutador o de otra manera).

Este código está alojado en mi servidor.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!