Skip to content

Conversation

@notalex-sh
Copy link
Member

Change Summary

Modified codebase for production.

Main changes:

  • Modified env files
  • Modified Docker related files
  • Modified django settings for static files

Change Form

Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

  • [NA] The pull request title has an issue number
  • [Y] The change works by "Smoke testing" or quick testing
  • [NA] The change has tests
  • [NA] The change has documentation

Other Information

NO

@vercel
Copy link

vercel bot commented Nov 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
coexist ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 13, 2025 7:51am

@notalex-sh
Copy link
Member Author

notalex-sh commented Nov 23, 2024

There is some errors with the static files as i havent decided on the actual path for serving on the hosting vm.

Copy link
Contributor

@dct0 dct0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Few comments relating from the dev perspective

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove these, you can just open the repo without the dev container

RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]

# TODO: Production No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically a prod build would have nextjs build as "standalone" and that would be then copied inside the container, but this should be fine for most purposes

  - Added env variable from project root in django settings.py
  - Brought .env.examples back to life
Updated from django files as per Yunho's recs to fix some of the issues occuring while building
Frontend deploys successfully!
Backend in progress: Trying to get it to createsuperuser. command doesnt work manually in the container on vps atm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants