Are your public files under version control? If not, you need to run gulp as part of your deployment on Forge. Add gulp --production to your deploy script.
Deploy to Forge Elixir Versioning not updated on CSS / JS
Hi,
I'm running into a problem getting my CSS and JS files to show after I deploy using Forge. I've determined that the versioning numbers are not being updated on the server.
I'm not a server admin by any means so if I'm doing something wrong let me know.
I deployed my site files to digital ocean and when I viewed the site the CSS and JS files were reporting 404 errors. Locally everything runs great so I wasn't sure what was the issue. I accessed my Digital Ocean console and navigated to the files. I was able to confirm that the versioning number on the files was different from the ones locally.
To be safe I ran gulp to update the file contatenation, versioning etc. Everything went smoothly. I then updated my Bitbucket repo and deployed the files using Forge.
However even after doing that the file versioning did not change. I'm referencing the files in my blade template using elixir this way: {{ elixir('css/app.css') }}
So I'm not able to confirm which has (version) is being used for the files. Any ideas what the problem could be?
Please or to participate in this conversation.