-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove ruby build altogether #3035 #3062
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a clean checkout, I am getting an error, which I guess is due to running npm install and npm run in parallel as a mention in another comment:
kvo-flow_1 | > akvo-flow@ build:dev /app/src/Dashboard
akvo-flow_1 | > babel-node ./scripts/buildDev.js
akvo-flow_1 |
akvo-flow_1 | sh: babel-node: not found
akvo-flow_1 | npm ERR! file sh
akvo-flow_1 | npm ERR! code ELIFECYCLE
akvo-flow_1 | npm ERR! errno ENOENT
akvo-flow_1 | npm ERR! syscall spawn
akvo-flow_1 | npm ERR! akvo-flow@ build:dev: babel-node ./scripts/buildDev.js
akvo-flow_1 | npm ERR! spawn ENOENT
akvo-flow_1 | npm ERR!
akvo-flow_1 | npm ERR! Failed at the akvo-flow@ build:dev script.
akvo-flow_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
akvo-flow_1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?
ci/devserver.sh
Outdated
bundle exec npm install & | ||
bundle exec npm run build:dev > "$SRC_DIR/build.dev.log" 2>&1 & | ||
npm install & | ||
npm run build:dev > "$SRC_DIR/build.dev.log" 2>&1 & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to run npm install
and npm run
in parallel? I understand that this is not new behavior but I am surprised nonetheless
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this resolved? It is causing the issue described above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isnt it fixed now @dlebrero
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not. Running npm install
and npm run
at the same time is causing the above issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this not run them sequentially?
npm install
npm run build:dev > "$SRC_DIR/build.dev.log" 2>&1 &
There is another Ruby file at https://github.com/akvo/akvo-flow/blob/20152ca7ce49033331ede4be3c6fddc42f4380e4/Dashboard/config/application.rb. Maybe it can also be removed |
Building this branch on my Linux machine (which has npm 3.5.2 installed) after clearing the target directory I get a number of npm warnings, but no error for /app/src/Dashboard:
|
@dlebrero ok should be resolved now everything |
@@ -1,3 +1,4 @@ | |||
b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dlebrero is this meant to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
Before the PR (what is the issue or what needed to be done)
Now that we are using webpack for the static assets build - we dont need ruby anymore.
The solution
Remove ruby and all deps.
Screenshots (if appropriate)
Checklist