Giter Site home page Giter Site logo

Comments (6)

nebulous avatar nebulous commented on April 28, 2024

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.

watkipet avatar watkipet commented on April 28, 2024

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.

nebulous avatar nebulous commented on April 28, 2024

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.

watkipet avatar watkipet commented on April 28, 2024

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.

nebulous avatar nebulous commented on April 28, 2024

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.

watkipet avatar watkipet commented on April 28, 2024

That fixed it. Thanks!

from infinitude.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.