-
Notifications
You must be signed in to change notification settings - Fork 305
Ionic 2 RC0 Pre-Populated databases #127
Comments
From @stellasoft-charlie on October 10, 2016 8:40 Ionic supports writing custom config files - https://github.com/driftyco/ionic-app-scripts#custom-config-files .
Then in your package.json add a config option with the following.
Put the pre-populated DB in the src folder and it will copy it over along with the rest of the files |
Hello! Thanks for opening an issue with us! As this seems like more of a support question i will urge that you ask this question on our forum and take a look at the app-scripts docs. Thanks for using Ionic! |
Hello! I am going to reopen this issue and move it to the app-scripts repo. We are reviewing the current setup where |
I did ask the question on ionic forum but did not get any reply. So after waiting some time i decided to create an issue here.
Thanks for taking your time to review this issue. |
We have changed the behavior here. Only the Please let me know if this solves your problem. I'll re-open the issue if needed. Thanks, |
Yes it won't remove the database now, it solves the problem. I can't make it work(my database request) but i guess is something to do with cordova-sqlite-ext plugin. |
This issue was moved to ionic-team/ionic-framework#12879 |
Sorry, wrong issue moved! |
From @iursevla on October 9, 2016 8:40
In ionic beta 11 i would put the pre-populated database on /www folder and use cordova-sqlite-ext plugin with options:
Now in RC0, it won't work because everytime we run (ionic run...) the www folder is overwritten.
I tried to put it on /src OR in /src/assets but with no luck in both cases.
So, where should i put pre-populated databases in ionic 2 RC0 ?
Copied from original issue: ionic-team/ionic-framework#8583
The text was updated successfully, but these errors were encountered: