loopback-connector-couch
loopback-connector-couch copied to clipboard
Boot script are executed before index view creation
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 !
It is also blocking for testing, view is not created when tests launches.
If someone knows a workaround ?