Header

My release folder is not being symlinked correctly

Due to the nature and configuration of some hosting providers, you might see that your current symlink is not being generated properly on your server after your zero-downtime deployments complete. For example, you might see the following when performing an ls -l command in your server:

current -> /home/user/./releases/XXXXXXXXXX

If you experience this issue, you can fix it by adding the following SSH command to your DeployHQ project which should run after your files have been uploaded. Make sure to run the command after each deployment.

cd [DEPLOYMENT_PATH]

ln -snf "$(ls -d ./releases/*/ | sort -rn | head -n 1)" current

This command will create the correct current symlink for your zero-downtime deployments, bypassing the aforementioned hosting provider caveat.

Tree

Proudly powered by Katapult. Running on 100% renewable energy.