Zotonic
Zotonic
zotonic@conference.zotonic.com
Wednesday, 6 March 2013< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[00:28:13] Maas leaves the room
[03:20:11] jeff.5nines leaves the room
[04:48:00] jeff.5nines joins the room
[04:48:25] jeff.5nines leaves the room
[07:31:59] Arjan joins the room
[07:32:44] Arjan leaves the room
[08:43:34] Maas joins the room
[08:58:23] Arjan joins the room
[09:24:47] <Maas> does any one know why the old method if finding zotonic lib_dir does not work correctly for when zotonic is running inside a release?
[09:25:51] <Maas> Using code:lib_dir from #512 makes it impossible to name the root directory differently
[09:27:35] <Maas> Locally I have adapted set_path in zotonic_app to use code:lib_dir. When it finds a name with that it sets it in the env. If not, it tries to find the path name with the old method. Is that a fix which works for both situations?
[09:27:37] <Arjan> you mean https://github.com/zotonic/zotonic/issues/512?
[09:28:23] <Maas> Oops, from pull request 521... https://github.com/zotonic/zotonic/commit/9c9ee61bae9f3e3b426b144f27b4a50365195f60
[09:29:09] <Marc Worrell> and when you name it like those version numbers? zotonic-xyz? Is that possible?
[09:29:28] <Maas> that is possible..
[09:30:06] <Marc Worrell> maybe that is good enough - when that merge solves other problems (I agree with your bottle neck observation btw)
[09:31:12] <Maas> I now have this for set_path...
[09:31:15] <Maas> %% @doc Set the abs pathname of zotonic in the application environment. It is
%% used to locate templates, scomps, translations and actions.
set_path() ->
Path = case code:lib_dir(zotonic) of
{error, _} ->
% When zotonic's root directory isn't called 'zotonic' try to find
% out what this name is.
P = code:all_loaded(),
filename:dirname(filename:dirname(proplists:get_value(?MODULE, P)));
P ->
P
end,
application:set_env(zotonic, lib_dir, Path).
[09:31:38] <Maas> And reverted z_utils:lib_dir
[09:32:12] <Marc Worrell> looks good to me
[09:32:32] <Marc Worrell> and the set_env is a good way of caching this stuff
[09:32:50] <Maas> I'll just push it then. Although I can't test if this works when it is started from a release
[09:33:39] <Arjan> maybe you can discuss it with the committer of the change?
[09:33:43] <Arjan> or at least ping him to test it
[09:34:15] <Marc Worrell> yes, good idea. send some feedback - also gives a feel good factor :)
[09:34:40] <Maas> Yep, I'll do that.
[09:48:53] <Maas> Having fun with the vm setup here... When I build from the vm, and then try to commit from osx the git submodule paths are different...
$ git diff
fatal: Not a git repository: /vagrant/.git/modules/deps/bert.erl
[09:49:51] <Maas> Why does it use abs paths?
[09:54:53] <Arjan> you're on your own there Im afraid
[09:55:04] <Arjan> have not used vagrant yet
[09:55:34] <Maas> Noticed that earlier when I compiled and then renamed the zotonic root directory. Then git looses track of the submodules
[09:55:50] <Maas> There is probably a flag for that :-)
[09:56:13] <Arjan> submodules are a bitch
[09:56:22] <Arjan> but we're working on removing them :)
[09:57:08] <Marc Worrell> :-)
[10:03:33] Andreas Stenius joins the room
[10:14:43] Arjan leaves the room
[10:19:10] <Andreas Stenius> try git submodule sync
[10:39:34] <Maas> It seems to have something to do with the --work-tree flag. It looks like you can configure git to use relative path names for the config file of the submodules
[10:39:52] <Maas> Not going to try to figure this out now. Have work to do.
[11:31:59] <Andreas Stenius> ok, I've merged Grzegorz (amiramix) rebar fix. The deps are now managed by rebar! ;)
[11:38:54] <Maas> Yeah!
[11:48:01] <Maas> Finally going to add the comet fallback mechanism to mod_bus...
[12:19:46] Maas leaves the room
[12:58:42] Maas joins the room
[13:09:46] Maas leaves the room
[13:23:15] <Andreas Stenius> :)
[13:24:16] Maas joins the room
[13:38:17] Maas leaves the room
[13:40:26] Maas joins the room
[13:40:38] jeff.5nines joins the room
[13:47:14] Maas leaves the room
[13:49:30] Maas joins the room
[15:29:57] Arjan joins the room
[15:54:12] Andreas Stenius leaves the room
[15:54:37] Andreas Stenius joins the room
[16:22:21] Marc Worrell leaves the room: Disconnected: Operation not permitted
[16:45:36] Marc Worrell joins the room
[17:14:19] Maas leaves the room
[19:43:31] jeff.5nines leaves the room
[19:43:37] jeff.5nines joins the room
[20:17:05] jeff.5nines leaves the room
[21:47:45] Maas joins the room
[22:12:15] Arjan leaves the room
[22:30:17] Andreas Stenius leaves the room
[23:45:16] Ivan Walulya joins the room
[23:56:51] Ivan Walulya leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!