loopback-connector-couch icon indicating copy to clipboard operation
loopback-connector-couch copied to clipboard

Boot script are executed before index view creation

Open moimael opened this issue 9 years ago • 1 comments

Hi,

I currently create an admin user at boot, the same way as the strongloop documentation suggest : https://docs.strongloop.com/display/public/LB/Creating+a+default+admin+user

But I need to encapsulate it in a setTimeout with a delay for this to work, otherwise it doesnt work the first time I load the server but does work if I reload my node server. It seems that the view for index is created too late in the process, after loopback boot scripts, causing the issue.

Thanks !

moimael avatar Jan 27 '16 15:01 moimael

It is also blocking for testing, view is not created when tests launches.

If someone knows a workaround ?

moimael avatar Jan 29 '16 15:01 moimael