Using Envoy as alternative to Envoyer but having trouble
With Envoyer being down, I thought I could write an Envoy script to handle my deployments in the interim. This is what I have so far for activating the latest release. The problem is the symlink seems to update fine (I can verify this point to the correct release using ls -l) but ngix wants to keep loading from the previous release, like it's ignoring the updated symlink and going of that it used to be. I can verify this by changing the name of the previous release, as this return the "no input found" error.
@deringer I already tried restarting nginx, it doesn't seem to matter. It doesn't seem like nginx would need restarted if all I am doing is changing an existing symlink, isn't that the point of the symlink, so it can be easily changed without disrupting anything?
Duration of time (in seconds) for which to cache realpath information for a given file or directory. For systems with rarely changing files, consider increasing the value.
@deringer So I just tested it again, and had the same issue, but I noticed something. I went into my releases folded and delete the old releases then it started working.
@bashy Ok so you are saying that nginx is pointing to the correct release, it's just that when the index.php page is hit and bootstraps the application, it's still loading from the old release because the path has been cached?
@deringer Ok cool runig php5-fpm reload worked. Now it makes sense, it seems the problem wasn't nginx or even the symlink not working, it was as @bashy pointed out, PHP was caching the real path which was causing laravel to load old files when bootstrapping the application.