scheduling capistrano function using cron -
I am a php developer using Capitolos, with multistage support to tell my application on my production server , I have very little ruby or rail knowledge.
I have your deployment There is enough idea to add a new function called 'flush' for the RB script which invokes a php script on all my production servers. The purpose of 'flush' is to connect to each production server and execute a php script which writes all to my Master DB from the local microcomputer tables of each server.
I believe that this function works by executing it from the command line (cap flow flush) results in accurate results.
I would like to schedule a cron job which allot the function every hour. To begin, I wrote a bash script that executes the function:
! However, when Cron Job runs the script, I email the following error: Work. 'Prod' is not present
I believe the problem occurs when the cron goes, it does not execute the script in the appropriate directory. I tried to change the $ path and $ HOME variable in the Bash script, but I can not seem to do this work.
Can anyone help me?
Thank you!
cd / path / place / deploy.rb / exists Cap Flow Flush
or
Change to CD / Your / App / Path / Cap Flow Flush
Comments
Post a Comment