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

How i deploy my orchard website as a html static website? #2159

Closed
jnucpz opened this issue Jul 30, 2018 · 15 comments
Closed

How i deploy my orchard website as a html static website? #2159

jnucpz opened this issue Jul 30, 2018 · 15 comments

Comments

@jnucpz
Copy link

jnucpz commented Jul 30, 2018

#2119 ,thanks to @sebastienros ,but it is not what i want.
There are many Static Site Generators,like jekyll, i want deploy my orchard website to two server, one is orchard website, the other is html static webiste which is generated by orchard website.
In orchardcore,there is liquid template, whether is there a soltion to generate html website?

@siyamandayubi
Copy link
Contributor

Maybe it is better to explain a little more, why do you want to do that. what is the requirement. If the concern is performance, enabling the caching is a solution

@jnucpz
Copy link
Author

jnucpz commented Jul 30, 2018

@siyamandayubi thanks. it is necessary to take care of Website Security .

@siyamandayubi
Copy link
Contributor

why not using two instances of Orchard. One front-end and one back-end. And exporting content from backend and import it into the front-end? Does the same thing, isn't it?

@jnucpz
Copy link
Author

jnucpz commented Jul 30, 2018

@siyamandayubi ,Yes, this solution works for security.

How i export content and import it between two instances? thanks for your answer.

@jnucpz
Copy link
Author

jnucpz commented Jul 31, 2018

There are some Static Site Generator, I want to write my own html generator, All blogpost generate to be html , i deploy these html to another server. who know how to resolve it?

@siyamandayubi
Copy link
Contributor

@jnucpz In the admin mode,

  1. Navigate to the Content -> Import Export -> Deployment Plans,
  2. Create a new Deployment Plan
  3. Then in the list of Deployment Plans, click on it (not on the Edit button, but on the name of the Plan)
  4. Add necessary steps such as all ContentTypes, Content etc
  5. Then you can run the plan, the result is a zip file containing a recipe file
  6. You can import the recipe in another instance

@pgy866
Copy link

pgy866 commented Jul 31, 2018

I also need this one, there is such a plugin in WordPress,
"https://wordpress.org/plugins/super-static-cache/"
"https://github.com/hitoy/super-static-cache",
Orchard Core is very fast, this demand is safe, and better SEO

@jnucpz
Copy link
Author

jnucpz commented Jul 31, 2018

@siyamandayubi thank you. I want a solution like Jekyll. With orchard, i don't know how to reach this goal.

@sebastienros
Copy link
Member

There is no existing way to do this right now.

Your solutions:

  • Use a site download like https://www.httrack.com/ to generate a static copy of the Orchard site
  • Use the GraphQL module to query content from local scripts, some extensions exist in sites generators like Hugo, Jekyll to use GraphQL data
  • Create a module that exports your content to Jekyll documents

You can also create a custom Deployment step that would generate a static site.

@Skrypt
Copy link
Contributor

Skrypt commented Aug 2, 2018

Jekyll uses Liquid templates so basically using Orchard Liquid templates and exporting them to a Jekyll solution should also work at some point. I'm sure there's more details about it ; and it's never been tested. By the way there is also https://wyam.io/ that uses Razor templates.

@jnucpz
Copy link
Author

jnucpz commented Aug 6, 2018

thanks ,i will test it @sebastienros ,@Skrypt

@pgy866
Copy link

pgy866 commented Aug 14, 2018

@surfmuggle
Copy link

Wyamio/Wyam#300

Wyam is a simple to use, highly modular, and extremely configurable static content generator that can be used to generate web sites, produce documentation, create ebooks, and much more.
https://github.com/Wyamio/Wyam

@surfmuggle
Copy link

Maybe it is better to explain a little more, why do you want to do that. what is the requirement. If the concern is performance, enabling the caching is a solution

@siyamandayubi
A static html page reduces the attack surface and the requirements on the hosting server.

@sebastienros
Copy link
Member

FYI I demoed some integration between Orchard and Wyam today. It included using the graphql endpoint and input sources, and some liquid module to render the content with Liquid (if you prefer it to Razor). I'll release a sample project soon, once I have pushed my modules to the wyam project.

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

No branches or pull requests

6 participants