Closed tacone closed 9 years ago
Also the public folder seems to be missing and needs to be manually created.
In production mode, it shows a 500 page and complains on the console about public/assets.json being missing.
Thank you, I'll take a look. Others are fixed now :smile:
Also the public folder seems to be missing and needs to be manually created.
Added to install process.
In production mode, it shows a 500 page and complains on the console about public/assets.json being missing.
You need to run first $ npm run build
which produces this file.
Thank you again for this catch ups.
I run it indeed, but the error persists.
I traced it down on line 14 of backend/actions/common.js
.
Changing
let assets = require("public/assets.json");
to:
let assets = require("../../public/assets.json");
will fix it. I'm not sending a pull request on this one, since I know you use absolute imports and I did not understand how it works precisely.
Also, even if then it runs, the css file is totally, so I guess you should revise a little bit your building process.
I think you're onto something with this repository, I like the ideas overall, and wish you good luck with it.
I run it indeed, but the error persists.
You didn't mention if assets.js
was created in your case. I guess it did so you can easily workaround it manually. If absolute import does not work - first place to check is a symlink. Symlinks are created in bin/install
and link to public
is really missed from there.
So you need to run this command from the project root.
ln -s ../public node_modules/public
I will fix this one of course. [Fixed]
I know you use absolute imports and I did not understand how it works precisely.
I can explain.
1) Absolute imports are easier to read and to support (practical experience in JS and Python)
2) NPM can use absolute imports only for folders / files located in node_modules
3) We can create an illusion of any project folder being located there through UNIX symlinks.
This solution and this project are incompatible with Windows as a consequence (actually symlinks can be added in Windows but that is a different question "how").
4) It makes sense to limit yourself to the top-level entry-like folders like frontend
, backend
etc. in my case.
5) The only thing to check for are name collisions. Our project folders we symlink should not be named as one of our NPM dependencies (babel, webpack... etc).
6) Symlinks are created at install step which must be rerunned if you removed entry folder or symlink manually. Install step must also be rerunned if you use ES6 syntax in webpack or tests and reinstall webpack or mocha.
Yes it was created.
Thank you for the explainations.
Excuse me for opening a single issue, but these issues are trivial so I hope it's not a problem:
Dependancies the build fails because those deps are missing:
Also the
public
folder seems to be missing and needs to be manually created.Documentation correct commands for production:
Running
Running in dev mode works.
In production mode, it shows a 500 page and complains on the console about public/assets.json being missing.