Comments (5)
@easco the path configuration only affects URL generation. It is assuming that you are actually running the service behind a proxy that is yanking the /myapp from it when you access it. So I am afraid that other things will break, unless you have a proxy in front of the application and stripping the /myapp part.
from phoenix_live_reload.
FWIW, so far this is the only thing we've run into. The root path does have to be accounted for in the router (we have to take it into account in the scope) and IIRC the lines in the endpoint where we define where static assets are served.
The path on the endpoint, as you point out, DOES affect URL generation as seen in reload_assets_tag
above, the logical inconsistency is that the the pattern match that provides the content of the iframe is not also "built in that space" -- it is not also based in that URL generation mechanism.
If you don't care to address this issue, that's fine. We can work with the proxy to try and add rewrite rules in our dev environment for the sake of code reloading – and then in production (should the need arise).
from phoenix_live_reload.
from phoenix_live_reload.
I have the case where my Development mirrors Production.
As I understand your comments, you are saying that Phoenix is only designed to run applications that are hosted at the root path, “/“, of the server they are running on. Is that an accurate statement?
from phoenix_live_reload.
from phoenix_live_reload.
Related Issues (20)
- Add option to do full page reloads when CSS changes HOT 3
- Unable to specify custom prefix for `live_reload/frame` url HOT 4
- Watch for changes outside the project folder HOT 1
- Browser freezing for two minutes on LiveReload HOT 3
- Release v1.3.4
- Debounce live reload events HOT 6
- Live reload breaks debugging session in elixirLS debugger HOT 4
- Live reload not triggering HOT 2
- Reciprocating a `Cross-Origin-Embedder-Policy` (COEP) of `require-corp`
- Warning during compilation on Elixir 1.15.x HOT 3
- Warn if no <body> present HOT 8
- LiveReload requires unsafe-inline script_src for CORS HOT 4
- Update FileSystem to 1.0.0 HOT 1
- new release HOT 4
- Proposal: allow optional scroll restoration on reload HOT 6
- A request for publishing a new release HOT 2
- v1.5.0 broken in Elixir 1.14.0 (Version 1.4.1 was fine) HOT 3
- openEditorAtDef and openEditorAtCaller only work once per load in Firefox HOT 1
- Colour of logs streamed to the web console are not legible in light mode HOT 1
- Warning when compiling the module in Elixir 1.14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phoenix_live_reload.