Comments (6)
Unless you've made changes to the frontend code and need to rebuild (see grunt build
in the public dir in that case), then you should be able to run infinitude in production mode, which will use the statically compiled frontend assets in the dist
dir. Try either adding the -m production
flag or set the MOJO_MODE
environment variable to production
And if that does indeed solve your problem, please feel free to update the wiki! I don't actually have a raspberry pi running Infinitude so that document is community maintained.
from infinitude.
I did run it with -m production
. I tried another installation, this time on macOS. I installed the dependencies with MacPorts and tried executing with: ./infinitude daemon -m production
. I get the same result in a browser debug console when browsing to http://localhost:3000:
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (http://localhost:3000/bower_components/angular-cookies/angular-cookies.js)
In noticed that on both machines, bower_components
isn't in infinitude/public
:
Hostname:public username$ ls -al
total 136
drwxr-xr-x 19 username staff 646 May 12 09:27 .
drwxr-xr-x 16 username staff 544 May 12 10:00 ..
-rw-r--r-- 1 username staff 6148 May 12 09:27 .DS_Store
-rw-r--r-- 1 username staff 44 May 12 09:27 .bowerrc
-rw-r--r-- 1 username staff 415 May 12 09:27 .editorconfig
-rw-r--r-- 1 username staff 11 May 12 09:27 .gitattributes
-rw-r--r-- 1 username staff 51 May 12 09:27 .gitignore
-rw-r--r-- 1 username staff 394 May 12 09:27 .jshintrc
-rw-r--r-- 1 username staff 120 May 12 09:27 .travis.yml
-rw-r--r-- 1 username staff 9032 May 12 09:27 Gruntfile.js
-rw-r--r-- 1 username staff 272 May 12 09:27 README.md
drwxr-xr-x 13 username staff 442 May 12 09:27 app
-rw-r--r-- 1 username staff 709 May 12 09:27 bower.json
drwxr-xr-x 12 username staff 408 May 12 09:27 dist
-rw-r--r-- 1 username staff 154 May 12 09:27 fixup-css.sh
-rw-r--r-- 1 username staff 1348 May 12 09:27 karma-e2e.conf.js
-rw-r--r-- 1 username staff 1564 May 12 09:27 karma.conf.js
-rw-r--r-- 1 username staff 1076 May 12 09:27 package.json
drwxr-xr-x 5 username staff 170 May 12 09:27 test
It also isn't in public/dist
Hostname:public username$ ls -al dist/
total 80
drwxr-xr-x 12 username staff 408 May 12 09:27 .
drwxr-xr-x 19 username staff 646 May 12 09:27 ..
-rw-r--r-- 1 username staff 24139 May 12 09:27 .htaccess
-rw-r--r-- 1 username staff 3373 May 12 09:27 404.html
-rw-r--r-- 1 username staff 1150 May 12 09:27 favicon.ico
drwxr-xr-x 12 username staff 408 May 12 09:27 fonts
drwxr-xr-x 3 username staff 102 May 12 09:27 images
-rw-r--r-- 1 username staff 2667 May 12 09:27 index.html
-rw-r--r-- 1 username staff 31 May 12 09:27 robots.txt
drwxr-xr-x 4 username staff 136 May 12 09:27 scripts
drwxr-xr-x 5 username staff 170 May 12 09:27 styles
drwxr-xr-x 7 username staff 238 May 12 09:27 views
from infinitude.
interesting. I may have misremembered the flag. Try the following:
MOJO_MODE=production ./infinitude daemon -l http://:3000
...and be sure to dump your browser cache, otherwise the broken interface will remain across refreshes
from infinitude.
No. I get the same result with the MOJO_MODE=production ./infinitude daemon -l http://:3000
command as well. Thanks for helping, by the way! Is there anything else I should check in the infinitude
directory?
from infinitude.
I committed a change 7ef4e96 which should more aggressively default to production rather than development mode. Hopefully that helps and thanks for the feedback.
from infinitude.
That fixed it. Thanks!
from infinitude.
Related Issues (20)
- blowerRPM airflowCFM coilTemp guages flickering HOT 12
- fan with gas heat & total electric HOT 16
- energy.json - updated before midnight HOT 1
- serial ioloop regression HOT 1
- Websocket opened, but no streaming source found HOT 8
- Errors when trying to run (Docker in Proxmox) HOT 67
- Permission error while attempting to start the listener HOT 10
- Carrier Infinity Touch unable to reach www.api.ing.carrier.com when proxying through Infinitude HOT 2
- Bryant Thermostat won't talk to Infinitude HOT 4
- Additional RS485 Decoding - Questions HOT 2
- It's not always clear to new users how Infinitude works: HOT 3
- Heat source HOT 21
- Trying to ingest JSON status api into Telegraf HOT 4
- Not working with ION Home Comfort HOT 2
- Novice trying to get off the ground... HOT 3
- Is there a way to tell if the carrier thermostat is online? HOT 1
- Question about HA yaml for infinitude sensors HOT 1
- Serial number of unit not exposed HOT 1
- Repeated messages in Syslog - Question HOT 4
- How do i figure out which stage the A/C is running at via the API? HOT 4
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 infinitude.