I am deploying an application using a tool like Capistrano, sending individual commands to the server via a non-interactive shell.
public_html/ for the cPanel account is configured as a symlink, pointing to a path like
When sending 2 commands back to back to 1) remove the existing symlink or the default directory cPanel created and then 2) create a new symlink
Instead of seeing the symlink I expect
I see the following
It seems when the non-interactive shell connection is established to send the command creating the symlink, something is noticing the public_html/ directory no longer exists and is recreating it.
I've checked thoroughly to make sure none of my application code or deployment code is doing this, so I'm wondering: what is causing this behavior?
public_html/ for the cPanel account is configured as a symlink, pointing to a path like
Code:
/home/acctname/public_html -> /home/acctname/app/revisions/201402221245
Code:
rm -rf /home/acctname/public_html
ln -fs /home/acctname/app/revisions/201402221245 /home/acctname/public_html
Code:
/home/acctname/public_html -> /home/acctname/app/revisions/201402221245
Code:
/home/acctname/public_html/201402221245 -> /home/acctname/app/revisions/201402221245
I've checked thoroughly to make sure none of my application code or deployment code is doing this, so I'm wondering: what is causing this behavior?