Skip to content
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

Support on click deploy on Netlify #19

Closed
ahaapple opened this issue Oct 17, 2024 · 9 comments
Closed

Support on click deploy on Netlify #19

ahaapple opened this issue Oct 17, 2024 · 9 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ahaapple
Copy link
Contributor

Support on click deploy on Netlify: https://www.netlify.com/

you could refer to https://www.memfree.me/docs/one-click-deploy-ai-search

@ahaapple ahaapple added good first issue Good for newcomers help wanted Extra attention is needed labels Oct 17, 2024
@Riyan-Mo
Copy link
Contributor

@ahaapple Where to include the button for deploying?

@ahaapple
Copy link
Contributor Author

you could include the button in the readme.md file. like Vercel and Zeabur deploy button. Thanks.

@Riyan-Mo
Copy link
Contributor

I added the button but apparently it is showing build error while deploying. My guess is I haven't included the redis key for deploying.
image

@ahaapple
Copy link
Contributor Author

Yes. you could get the redis key in here: https://upstash.com/docs/redis/overall/getstarted which is free.

@Riyan-Mo
Copy link
Contributor

But wouldn't it expose the key. Since I have to add it to the README file?

@Riyan-Mo
Copy link
Contributor

Here is the pull request: #39

@ahaapple
Copy link
Contributor Author

@Riyan-Mo

Hi, You don't need to expose the key, just set the name of the environment variable that must be configured in the URL

The following vercel deployment url:

https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmemfreeme%2Fmemfree&env=UPSTASH_REDIS_REST_URL%2CUPSTASH_REDIS_REST_TOKEN%2COPENAI_API_KEY%2CMEMFREE_HOST%2CAUTH_SECRET%2CAPI_TOKEN&envDescription=https%3A%2F%2Fgithub.com%2Fmemfreeme%2Fmemfree%2Fblob%2Fmain%2Ffrontend%2Fenv-example&project-name=memfree&repository-name=memfree&demo-title=MemFree&demo-description=MemFree+%E2%80%93+Hybrid+AI+Search+Engine&demo-url=https%3A%2F%2Fwww.memfree.me%2F&demo-image=https%3A%2F%2Fwww.memfree.me%2Fog.png&root-directory=frontend&teamSlug=memfree

I searched on memfree and found that netlify should support the following way of passing environment variables. You can test it to confirm. Thank you.


https://app.netlify.com/start/deploy?repository=https://github.com/memfreeme/memfree&create_from_path=frontend/&env.API_KEY=your_api_key&env.DEBUG=true

@Riyan-Mo
Copy link
Contributor

Yes thank you. I will add it.

Copy link
Contributor

Hello @ahaapple! Your issue #19 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants