Closed billzt closed 3 years ago
Here is a solution. After running docker-compose up -d breedbase
:
docker exec -it breedbase_web bash
cd /home/production/cxgn/sgn/js
solgenomics/brapijs
and solgenomics/BrAPI-BoxPlotter
using your favourite github mirror sitespackage.json
as:
"dependencies": {
"@solgenomics/brapijs": "file:./brapi-js",
"BrAPI-BoxPlotter": "file:./BrAPI-BoxPlotter",
"d3": "^5.9.2"
},
npm run reset && ./node_modules/.bin/webpack --config build.webpack.config.js
Thanks for the comment and instructions!
In
/home/production/cxgn/sgn/js
, node_modules must be correctly built in order to run the server properly.In some special instances such as in China, it is difficult to connect with github in a command-line server. Therefore npm dependencies such as
@solgenomics/brapijs
andBrAPI-BoxPlotter
in/home/production/cxgn/sgn/js/package.json
can't be built. However we can't see any warnings or errors if we simply rundocker-compose up -d breedbase
. It just shows everything is OK. But you can't visit http://localhost:7080