[Catalyst] myapp_local.yml gets ignored
Jochen Luig
jochen.luig at skytel.de
Fri Jun 19 07:27:14 GMT 2009
On Thu, 2009-06-18 at 08:50 +0100, Tomas Doran wrote:
> At a wild stab in the dark - is this an issue with the lifecycle of
> your application? I.e. is your app starting before you actually write
> the config file out?
It may be a lifecycle issue. The db connection is configured in
MyApp::Model::MyAppDB. I don't know enough about the initialization
process to decide if that's a problem, so I'll just try it.
> I guess that starting your test with strace -f and then searching for
> instances of the string 'myapp_local' in the output would be
> instructive about what is going wrong for you..
As far as I understand the attached snippet of the strace output I think
the myapp_local.yml is actually being read during the startup process.
Jochen
-------------- next part --------------
[pid 7844] select(8, [4 6], NULL, NULL, NULL <unfinished ...>
[pid 7845] <... write resumed> ) = 61
[pid 7845] gettimeofday({1245317519, 875530}, NULL) = 0
[pid 7845] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 7845] write(2, "2009/06/18 11:31:59 Loaded Config"..., 74 <unfinished ...>
[pid 7844] <... select resumed> ) = 1 (in [6])
[pid 7844] read(6, "2009/06/18 11:31:59 Loaded Config"..., 65536) = 74
[pid 7844] write(2, "2009/06/18 11:31:59 Loaded Config"..., 742009/06/18 11:31:59 Loaded Config "/home/jochen/projects/MyApp/myapp.yml"
) = 74
[pid 7844] select(8, [4 6], NULL, NULL, NULL <unfinished ...>
[pid 7845] <... write resumed> ) = 74
[pid 7845] gettimeofday({1245317519, 876155}, NULL) = 0
[pid 7845] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 7845] write(2, "2009/06/18 11:31:59 Loaded Config"..., 80 <unfinished ...>
[pid 7844] <... select resumed> ) = 1 (in [6])
[pid 7844] read(6, "2009/06/18 11:31:59 Loaded Config"..., 65536) = 80
[pid 7844] write(2, "2009/06/18 11:31:59 Loaded Config"..., 802009/06/18 11:31:59 Loaded Config "/home/jochen/projects/MyApp/myapp_local.yml"
) = 80
[pid 7844] select(8, [4 6], NULL, NULL, NULL <unfinished ...>
[pid 7845] <... write resumed> ) = 80
[pid 7845] gettimeofday({1245317519, 877341}, NULL) = 0
[pid 7845] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 7845] write(2, "2009/06/18 11:31:59 Setting up au"..., 48 <unfinished ...>
[pid 7844] <... select resumed> ) = 1 (in [6])
[pid 7844] read(6, "2009/06/18 11:31:59 Setting up au"..., 65536) = 48
[pid 7844] write(2, "2009/06/18 11:31:59 Setting up au"..., 482009/06/18 11:31:59 Setting up auth realm users
) = 48
[pid 7844] select(8, [4 6], NULL, NULL, NULL <unfinished ...>
[pid 7845] <... write resumed> ) = 48
[pid 7845] gettimeofday({1245317519, 878556}, NULL) = 0
[pid 7845] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 7845] write(2, "2009/06/18 11:31:59 Initialized i"..., 51 <unfinished ...>
[pid 7844] <... select resumed> ) = 1 (in [6])
[pid 7844] read(6, "2009/06/18 11:31:59 Initialized i"..., 65536) = 51
[pid 7844] write(2, "2009/06/18 11:31:59 Initialized i"..., 512009/06/18 11:31:59 Initialized i18n "MyApp::I18N"
) = 51
[pid 7844] select(8, [4 6], NULL, NULL, NULL <unfinished ...>
[pid 7845] <... write resumed> ) = 51
[pid 7845] gettimeofday({1245317519, 879233}, NULL) = 0
[pid 7845] stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2309, ...}) = 0
[pid 7845] brk(0xbc72000) = 0xbc72000
[pid 7845] write(2, "2009/06/18 11:31:59 Loaded compon"..., 4096 <unfinished ...>
[pid 7844] <... select resumed> ) = 1 (in [6])
[pid 7844] read(6, "2009/06/18 11:31:59 Loaded compon"..., 65536) = 4096
[pid 7844] write(2, "2009/06/18 11:31:59 Loaded compon"..., 40962009/06/18 11:31:59 Loaded components:
.-----------------------------------------------------------------+----------.
| Class | Type |
+-----------------------------------------------------------------+----------+
More information about the Catalyst
mailing list