-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Ergomake #864
Ergomake #864
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@vieiralucas is attempting to deploy a commit to the reworkd Team on Vercel. A member of the Team first needs to authorize it. |
Hi 👋 Here's a preview environment 🚀 https://next-reworkd-agentgpt-864.env.ergomake.link Environment Summary 📑
Questions? Comments? Suggestions? Join Discord. Click here to disable Ergomake. |
docker-compose.yml
Outdated
NEXT_PUBLIC_BACKEND_URL: 'http://localhost:8000' | ||
NEXTAUTH_URL: "http://localhost:3000" | ||
DATABASE_URL: "mysql://reworkd_platform:reworkd_platform@db:3307/reworkd_platform" | ||
NEXTAUTH_SECRET: "changeme" |
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.
Is there any way to simply pass an env into the ergomake env?
docker-compose.yml
Outdated
volumes: | ||
- ./platform:/app/src/ | ||
env_file: | ||
- next/.env |
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 come we're removing this?
@@ -0,0 +1,15 @@ | |||
FROM node:19-alpine |
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.
Nice! Needed this :)
next/Dockerfile
Outdated
ARG NEXT_PUBLIC_BACKEND_URL | ||
ENV NEXT_PUBLIC_BACKEND_URL=$NEXT_PUBLIC_BACKEND_URL | ||
|
||
ARG NEXTAUTH_URL | ||
ENV NEXTAUTH_URL=$NEXTAUTH_URL | ||
|
||
ARG DATABASE_URL | ||
ENV DATABASE_URL=$DATABASE_URL | ||
|
||
ARG NEXTAUTH_SECRET | ||
ENV NEXTAUTH_SECRET=$NEXTAUTH_SECRET |
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.
Ideally we don't have this. It introduces another vector that we might need to update whenever a new env variable is introduced. It would be cool to have a Vercel style workflow of adding ENV values to a project
next/Dockerfile
Outdated
|
||
# Expose the port the app will run on | ||
EXPOSE 3000 | ||
|
||
ENTRYPOINT ["sh", "/entrypoint.sh"] | ||
|
||
# Start the application | ||
CMD ["npm", "run", "dev"] |
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.
Ideally we don't build here. I personally use this for dev and require hot reloads :)
Thanks @vieiralucas! Left some comments - looking forward to getting this up and running! |
@asim-shrestha I moved every customization to inside the The thing about Running things in dev mode is problematic because it usually needs too much resources and/or reduces the performance too much. Finally, since every So, for these reasons I made some changes to the compose and dockerfiles. That said, I completely agree that these things should not interfere on how developers wants to runs things on their machines, it makes sense, my bad for not thiking about that. I can definetly see how we can add a set of features to ergomake to try to avoid some of these customizations, but nowadays that would be the way to integrate ergomake with |
Thanks @vieiralucas!
Perfect :)
Ah, makes sense
I think the changes such as the mappings of env to the ergomake variables make sense given this, the ideal for us is that we'd be able to create our own We'll try to review and get this in later today! |
Looks good to me! I like how it is clean and separated! I think we can merge then iterate should the need arise. |
No description provided.