Creating sites is a work-in-progress and has an open ticket attached to it.
A bit patience, we are working on it :) Cheers, Marc > On 28 Jul 2017, at 17:43, heiheshang <[email protected]> wrote: > > Does the new version work exactly? I can not even create a new site > > понедельник, 10 июля 2017 г., 19:51:41 UTC+9 пользователь Marc Worrell > написал: > Mikael, you are brave! :-) > > > About the _checkouts, I was thinking about using that for installing > user-defined modules/sites with the “umbrella” Zotonic app server. > > But we could also just add the user modules and user sites directories as > sources to the rebar.config. > > I guess a rebar extension or script can handle this. > > We have an issue for this: https://github.com/zotonic/zotonic/issues/1743 > <https://github.com/zotonic/zotonic/issues/1743> > > - Marc > > >> On 10 Jul 2017, at 12:49, Mikael Karlsson <[email protected] <javascript:>> >> wrote: >> >> OK, >> it was more a question what was feasible, but great if you treat it as a >> tip. :-) It is good to have when you are developing your site inside the >> zotonic directory tree. I guess you also need to add path to user/modules. >> Maybe the _checkouts alternative is useful when you pull your site from a >> remote git repository and would like to keep it outside the zotonic >> directory structure? >> >> Best Regards >> Mikael >> >> Den måndag 10 juli 2017 kl. 10:42:10 UTC+2 skrev [email protected] >> <http://ddeboer.nl/>: >> I like using project_app_dirs >> <https://www.rebar3.org/v3/docs/configuration#section-directories> instead >> of creating a custom symlink strategy. Thanks for the tip! >> >> David >> >> >> On Sunday, July 9, 2017 at 7:00:56 PM UTC+2, Mikael Karlsson wrote: >> >This BREAKS ALL existing Zotonic-master installs, so DO NOT UPGRADE! >> >> Sorry I couldn't resist. At least not on my development machine. >> >> So if it is to early for questions just ignore :-) >> >> Concerning the point "user module/site handling with _checkouts" I tried to >> symlink to my user/sites/<sitename> directory from _checkouts but nothing >> happened. Adding it in the rebar.config to default app dirs like: >> >> {project_app_dirs, ["apps/*", "lib/*", ".","user/sites/*"]}. >> >> Makes it work. The compiled app ends up under the _build directory together >> with the modules, I cannot judge if this is any problem though. >> >> Best Regards >> Mikael >> >> Den tisdag 4 juli 2017 kl. 23:42:51 UTC+2 skrev Marc Worrell: >> Hi, >> >> We are preparing a huge update to the 1.0-dev (aka master) branch. >> >> This update will make Zotonic compatible with Erlang OTP projects. >> All modules and sites become OTP applications. >> >> This BREAKS ALL existing Zotonic-master installs, so DO NOT UPGRADE! >> >> >> And now for some Q&A. >> >> >> What is changing? >> >> * All sites must become Erlang OTP applications >> * All modules must become Erlang OTP applications >> * Zotonic is being split up in different apps, for better re-use >> * All Zotonic parts are published as separate packages to hex.pm >> <http://hex.pm/> >> * Use the hex package manager for module installations >> * The zotonic umbrella project which can be used for core development >> * There will be separate “starter” projects for easy development >> * rebar3 templates for creating >> >> >> When will what happen? >> >> In the coming days we will merge the OTP branch into master. >> The pull request is: https://github.com/zotonic/zotonic/pull/1717 >> <https://github.com/zotonic/zotonic/pull/1717> >> >> After this we will update with some missing pieces: >> >> - rebar3 templates https://github.com/zotonic/zotonic/issues/1737 >> <https://github.com/zotonic/zotonic/issues/1737> >> - hex for module installs https://github.com/zotonic/zotonic/issues/1742 >> <https://github.com/zotonic/zotonic/issues/1742> >> - user module/site handling with _checkouts >> https://github.com/zotonic/zotonic/issues/1743 >> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fzotonic%2Fzotonic%2Fissues%2F1743&sa=D&sntz=1&usg=AFQjCNFSZx0swvWTkHus32C-zD0-oBRciQ> >> >> After we added logging we can call it a release candidate. >> >> >> What is the overall structure of a site/module? >> >> Template, css, js etc. all move into the priv directory. >> All Erlang source files move into the src directory >> >> Example: >> >> mysite / >> src / >> mysite.app.src >> mysite.erl >> controllers / >> controller_test_foo.erl >> models / >> … >> priv / >> zotonic_site.config >> templates / >> … >> lib / >> … >> >> >> We will keep you updated via the list. >> >> Cheers, Marc >> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Zotonic users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Zotonic developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- --- You received this message because you are subscribed to the Google Groups "Zotonic developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
