Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install and run? #10

Closed
alezzigo opened this issue Jan 19, 2021 · 3 comments
Closed

Can not install and run? #10

alezzigo opened this issue Jan 19, 2021 · 3 comments

Comments

@alezzigo
Copy link

alezzigo commented Jan 19, 2021

Can not install and run
Then install follow your Guild it's not run. Table is not exist.
I think need have automation create Schema.
Thank you!

@kyhsa93
Copy link
Owner

kyhsa93 commented Jan 19, 2021

@alezzigo

If you want the database to be automatically synchronized when starting this app with docker-compose up, you need to add an environment variable and use it.

You need to add DATABASE_SYNC=true to your .env or docker-compose.yml file.

After that use the docker or docker-ccompose command to recreate this app's container.

If you want to set it inside the code of this app, modify database.syncronize to be true in app.config.ts and restart the app.

Automatically synchronizing databases can lead to unintentional data loss and I think this should be prevented.

So, I think database auto-sync should be selectively enabled.

If there is any better way, please let me know.

Thank you.

@kyhsa93
Copy link
Owner

kyhsa93 commented Jan 19, 2021

@alezzigo

If you have more opinions on this issue, please reopen it.

Thank you.

@kyhsa93 kyhsa93 closed this as completed Jan 19, 2021
@alezzigo
Copy link
Author

Thank @kyhsa93 !

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

No branches or pull requests

2 participants