Lexicon version 1: How specifically are the .env
files used?
#31
-
Describe the bugI would like to know which files are to be changes in order to make the build working? For instance, like we change the MOBILE_PROSE_HOST to where we have deployed the code in .env file from frontend folder. REQUIRED: Include the contents of
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Please do not skip filling out the issue template. We'll need to close this issue unless you update your post with the issue template fully filled out. |
Beta Was this translation helpful? Give feedback.
-
I have edited and added the issue template. My query is, in FRONTED folder, in package.json file there is quickstart which is given value of "MOBILE_PROSE_HOST=http://127.0.0.1 MOBILE_PROSE_PORT=8929 expo r -c". While creating a build do I need to changes these also? |
Beta Was this translation helpful? Give feedback.
-
If you want to publish your app, you'll need to deploy the API somewhere publicly accessible. This topic was also recently covered in this issue: #11 I would recommend reading the documentation links mentioned in that issue for next steps. Once you've deployed it somewhere, you will need to update the The line you're referencing from When building the app you should follow what is outlined in the documentation under the Publishing your App section. |
Beta Was this translation helpful? Give feedback.
-
I'm having trouble with the build. The API I'm using is working in development mode only but not after creating a build. The API endpoint is: https://www.websitetoolbox.com/tool/view/mb/forum_search?q=forums.thebrain.com Since Also, The API link I mentioned above is returning a JSON response. I went through the doc and it said I have to host my lexicon code and the dependencies plus the port to that link above. Is that what I to do to solve this thing up? |
Beta Was this translation helpful? Give feedback.
-
The docs do not indicate to use eas build, so there should be no expectation that things will work as expected if you're not following the instructions as they're described.
That depends on how you hosted it. Lexicon doesn't return responses like that so you'll have to debug your individual setup to figure out what's going wrong. Also, the docs recommend getting a dedicated instance to host it on, which does not appear to be the case here, so your mileage may vary.
Yes, follow the instructions in the docs to deploy the GraphQL API somewhere publicly accsessible. |
Beta Was this translation helpful? Give feedback.
-
The document didn't mention about setting up frontend/.env on the server just like we do in development mode. |
Beta Was this translation helpful? Give feedback.
-
This seems to communicate some misunderstanding. The frontend has nothing to do with the server. The frontend is used to build the app. Please read the documentation closely in the linked sections above to understand how to deploy the GraphQL API. If you're still confused after that, I would suggest finding someone who is more familiar with NodeJS, React Native, deploying applications, etc. who can guide you through this. |
Beta Was this translation helpful? Give feedback.
If you want to publish your app, you'll need to deploy the API somewhere publicly accessible.
This topic was also recently covered in this issue: #11
I would recommend reading the documentation links mentioned in that issue for next steps.
Once you've deployed it somewhere, you will need to update the
frontend/.env
file to point at the correct host and port.The line you're referencing from
package.json
is a quick start command used in development only.When building the app you should follow what is outlined in the documentation under the Publishing your App section.