Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser Sync not Updating PHP outside BODY + Certificate Issues #2070

Open
2 tasks done
xcrap opened this issue Jun 3, 2024 · 0 comments
Open
2 tasks done

Browser Sync not Updating PHP outside BODY + Certificate Issues #2070

xcrap opened this issue Jun 3, 2024 · 0 comments

Comments

@xcrap
Copy link

xcrap commented Jun 3, 2024

Issue details

I was searching for an alternative for Live Sync / Refresh my Local Development, I've been using Codekit / PrePros in the latest years but wanted to have something lighter and simpler. I'm was trying browser-sync with my local server and two issues happens:

1 - The live reload works if I make changes inside or , but If I make changes for example... in the top of a file before any html tag it refreshes once and then the b_s_script if no longer injected, I have to do a hard refresh... so editing php inside elements and et works, outside it refreshes the first time and the script is no longer injected and everything stops working, even in the CLI says Reloading Browsers. I don't understand but using --no--inject-changes should not just refresh everything on file change, I'm not sure why it needs to inject the script with that option.

2 - Certificate. I've installed a certificate, it was not working, I've deleted the files, created a new one, I've added to the Keychain access, already set to Trust and I've added the certificate in "login" but i also tried in "System". I always get an invalid certificate, the funny thing is that it points me to the first certificate I've created and not the last one, even the first does not exists, yes I've restart the computer, cleaned the cache, flushes the dns but the issue persists, so it's very very strange.

Any ideas on any of those subjects ?

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 3.0.2 ]
  • Node [ 20.10.0 ]
  • Npm [ 10.8.1 ]

Affected platforms

  • OS X

Browsersync use-case

  • CLI

If CLI, please paste the entire command below

browser-sync start --ws --no-inject-changes —no-notify --proxy "https://website.local" --https --key "$HOME/Documents/LocalCertificates/bs-key.pem" --cert "$HOME/Documents/LocalCertificates/bs-cert.pem" --files "$HOME/htdocs/website//*.php, $HOME/htdocs/website//.css, $HOME/htdocs/website/**/.js" —log-level “debug” —host “https://website.local”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant