How to host on ec2?
Unanswered
Dwarf Crocodile posted this in #help-forum
Dwarf CrocodileOP
Earlier I was using CRA + flask, and I deployed it on ec2 (with nginx as reverse proxy and for serving my index.html inside build folder, a gunicorn service running for my
Now, I have moved from CRA to Nextjs but still using the same flask backend.
How can i deploy it?
(I am hoping I don't need to change much of the ec2 configurations)
app.py
file on ec2).Now, I have moved from CRA to Nextjs but still using the same flask backend.
How can i deploy it?
(I am hoping I don't need to change much of the ec2 configurations)
3 Replies
@Dwarf Crocodile Earlier I was using CRA + flask, and I deployed it on ec2 (with nginx as reverse proxy and for serving my index.html inside build folder, a gunicorn service running for my `app.py` file on ec2).
Now, I have moved from CRA to Nextjs but still using the same flask backend.
How can i deploy it?
(I am hoping I don't need to change much of the ec2 configurations)
are you building a [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports)? if yes then you don't really need to change much from your existing setup as the files are all static. if you are deploying a server you can read the docs about self-hosting: https://nextjs.org/docs/app/building-your-application/deploying#self-hosting
Dwarf CrocodileOP
most pages are static, 2-3 are server-rendered.
@Rafael Almeida are you building a [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports)? if yes then you don't really need to change much from your existing setup as the files are all static. if you are deploying a server you can read the docs about self-hosting: <https://nextjs.org/docs/app/building-your-application/deploying#self-hosting>
Dwarf CrocodileOP
and the docs dont have much info