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

[Feature]: Add guides about Modern.js App deployment #3624

Closed
chenjiahan opened this issue May 8, 2023 · 17 comments
Closed

[Feature]: Add guides about Modern.js App deployment #3624

chenjiahan opened this issue May 8, 2023 · 17 comments
Assignees
Labels
documentation Improvements or additions to documentation ✨ feature request Modern.js Framework

Comments

@chenjiahan
Copy link
Member

What problem does this feature solve?

Add guides on how to deploy Modern.js app on these platforms:

What does the proposed API look like?

Ref: https://nuxtjs.org/deployments

@zllkjc
Copy link
Member

zllkjc commented May 23, 2023

Okey, I will finish these docs in Jun.

@AsuraKev
Copy link

And Azure static website please

@omarshibli
Copy link

Any update on this?

@AsuraKev
Copy link

^

@chenjiahan
Copy link
Member Author

No progress yet.

You can refer to "output files" to understand the dist directory structure of Modern.js and how to custom the output structure. This will help you to deploy the application to different platforms.

@mitch1009
Copy link

ModernJS is amazing in terms of Developer productivity. the missing piece is how to deploy this after all the development. i normally deploy my apps in docker containers i would like to see more on this in the docs. currently there is no option for deploying in a Docker image or whatsoever. For this framework to be complete we need a way to deploy the application in different environments.

FYI: @chenjiahan your link for output fills is not going to the right page

@mitch1009
Copy link

i found a way to deploy to azure cloud. i will write the solution and share it. let me know if i can be of help on this issue.

@lastIndexOf
Copy link
Contributor

any progress?

@targeral targeral self-assigned this Feb 19, 2024
@AllenAttuned
Copy link

@mitch1009 Were you able to deploy your build without needing the Node.js runtime?

@zackarychapple
Copy link

Watching this one too.

@AllenAttuned
Copy link

@zackarychapple I'm not sure what your setup is, but I wrote some basic notes on hosting a static SPA on S3 here:

@zackarychapple
Copy link

@zackarychapple I'm not sure what your setup is, but I wrote some basic notes on hosting a static SPA on S3 here:

awesome thanks for sharing.

@zllkjc
Copy link
Member

zllkjc commented Jul 9, 2024

We have provided deployment solutions based on Vercel, Netlify, and general Node.js some time ago. For details, please check Deploy Application.

if you have other platforms that need support, you can continue to issue

@zllkjc zllkjc closed this as completed Jul 9, 2024
@AllenAttuned
Copy link

We have provided deployment solutions based on Vercel, Netlify, and general Node.js some time ago. For details, please check Deploy Application.

if you have other platforms that need support, you can continue to issue

The docs still don't outline how to deploy the app as static SPA. I think that would be helpful for many people, as Modern.js is great at building for such a use case.

@zllkjc
Copy link
Member

zllkjc commented Jul 11, 2024

The docs still don't outline how to deploy the app as static SPA

Okey, let us add it..And could you give a deploy example for「static SPA」..How do you want to deploy it?

@yimingjfe
Copy link
Member

The docs still don't outline how to deploy the app as static SPA. I think that would be helpful for many people, as Modern.js is great at building for such a use case.

I think what you may need is this , which is called "Pure Front-end Project" to distinguish it from "Full Stack Project", which may lead to misunderstanding.

@AllenAttuned
Copy link

AllenAttuned commented Jul 11, 2024

@zllkjc I wrote up these notes on how we were able to configure Modern.js to produce a "static SPA". Pretty much, we wanted to be able to copy the build output and then serve it using a web server such as Nginx, or in our case S3+Cloudfront. We didn't want to use a service like Netlify or have to run Node.js to serve it. Following this kind of setup has worked well so far for us, with both SPAs and microfrontends, and with/out Modern.js routing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ✨ feature request Modern.js Framework
Projects
None yet
Development

No branches or pull requests

10 participants