Closed lzy7071 closed 4 years ago
I haven't changed the REST API address. I did comment out the netlify-cli commands because the cli is not installing anymore. My best guess is that the new version of one of the dependencies is problematic.
I haven't changed the REST API address. I did comment out the netlify-cli commands because the cli is not installing anymore. My best guess is that the new version of one of the dependencies is problematic.
I see. When the build was done by netlify-cli, one can set NODE_ENV so the final build/
folder should have the correct API endpoint. It seems Netlify treats all deployments with the same build command so I don't see an obvious way to set up separate NODE_ENV (development
, test
, or production
) for branch-based deployments. I'll look into why netlify-cli is not installing anymore.
I changed the Netlify build to use scripts/deploy.sh
(this can also be called via npm run deploy
). I'll change script this to use the development
environment for non-master branches. Netlify sets a few environment variables which I can use to implement this (see docs).
Regarding netlify-cli
, I'm not sure what's going on. I'm having trouble installing it on my local machine as well.
I'm trying to debug the other errors I introduced over the last couple days. Hopefully I'll push this in a few minutes.
I haven't figured out the netlify-cli
issue, but I can install it locally as a local package (i.e., without the -g
option). I'll add netlify-cli
as a dev
dependency and uncomment the netlify building in the CircleCI config.
I think I got everything fixed. @lzy7071, close the issue if you agree.
I think I got everything fixed. @lzy7071, close the issue if you agree.
I'm going to try running it locally. This might be a different issue but the production site https://www.datanator.info is still using the old endpoints where FTX does not project out irrelevant fields.
I think I got everything fixed. @lzy7071, close the issue if you agree.
master branch can be run locally with no issue now.
Example: API calls made in https://5eefe4ccb11f51000794e165--datanator.netlify.app/search/atp%20/Escherichia%20coli%20E1002/ are sent to
If I cannot be sure that the new testapi will work on the frontend, I will not deploy the changes to production API at
api.datanator.info
instead oftestapi.datanator.info
. Could commit 3d977113780608597dac508168cce575b9b3b890 be the cause? I added projection functionality in test REST API as discussed in the mail. I changed the corresponding files indatanator_frontend
to reflect the changes in REST API. I tried testing the frontend locally on my computer but theReaction
category for some reason refuses to work, either ondev
branch ormaster
branch. Attached is the error prompt and the calls made when frontend is run locally on eitherdev
branch ormaster
branch.api.datanator.info
. The changes that incorporate projection in FTX can be tested ontestapi.datanator.info
here