Comments (6)
But is it actually problematic? In my opinion, restrictions should not exist unless absolutely necessary. You might not see any use case right now, but somebody else might.
Look at my use case: I am running and will always run the frontend and backend on the same machine, but if I run them separately, I can change the config and restart the backend without the user even noticing the disruption, and much quicker too. There is no need to restart the frontend for a minimal config change.
My current workaround is to simply attach to the external IP of the device, but with what I currently know, I feel the restriction could be dropped completely with no ill effects whatsoever.
from magicmirror.
Come to think about it: Is there a logical reason to block localhost? I stumbled upon it when trying to split my PM2 config into two, so I could restart the frontend and backend individually.
from magicmirror.
in general there is no need to use client on the same machine
just use a browser on the docker host
from magicmirror.
there is no guarantee that the front end will recover when the backend is restarted.
from magicmirror.
I noticed that sometimes it will get out of sync. For my testing setup, that is no big issue. When I deploy it for real, I'll most likely go back to running it as a single task for now.
That still doesn't explain why localhost needs to be blocked in my mind, because it would be true whether you ran client and server on the same machine or on separate ones.
from magicmirror.
well, if you are going to run it on the same machine, then we recommend using the single instance execution
npm start
vs
npm run server
AND
npm run client
from magicmirror.
Related Issues (20)
- [weather] unit of config is not respected on broadcasted notifications HOT 3
- online doc initial page on android phone hamburger menu doesnt respond HOT 7
- short dayname with time there HOT 5
- [calendar] Wrong values on broadcasted fullday events with RRULE
- Initializing buttons using 'MMM-Buttons' for notification sending to 'MMM-StopwatchTimer' induces an error :( HOT 2
- [weather] openweathermap One Call 2.5 will be finally closed in June 2024 HOT 5
- [news feed][feature request] ignore HTML tags in news feed items
- Modules with no header are always redrawn in updateDom, even when module content is unchanged HOT 4
- Error magicmirror 2.27 after upgrade - Blank black screen HOT 6
- Crash on Start possibility HOT 8
- PR 2881 extended calendar to receive notifications from other modules, but code in wrong place
- [weather] openmeteo precipitationProbability not shown in forecast
- newsfeed enclosured picture feature HOT 6
- [weather] openmeteo hourly does not work into next day
- [weather] provider openmeteo showing nightly icons in forecast when current time is "nightly"
- Electron >= v30.x uses Node v20
- Compliments module special days config HOT 5
- OpenMeteo weather provider uses "apparent temperature" in forecast data instead of actual temperatures HOT 2
- Repeating calendar event shifted by 1 day when RRule is processed HOT 3
- Option to turn on/off monitor under certain conditions HOT 1
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 magicmirror.