Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Boot script are executed before index view creation #11

Open
moimael opened this issue Jan 27, 2016 · 1 comment
Open

Boot script are executed before index view creation #11

moimael opened this issue Jan 27, 2016 · 1 comment

Comments

@moimael
Copy link

moimael commented Jan 27, 2016

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
Copy link
Author

moimael commented Jan 29, 2016

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

If someone knows a workaround ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant