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

Required Docs #1674

Open
SOG-web opened this issue Dec 28, 2024 · 1 comment
Open

Required Docs #1674

SOG-web opened this issue Dec 28, 2024 · 1 comment

Comments

@SOG-web
Copy link

SOG-web commented Dec 28, 2024

I am need to run some pre-built/pre-server start command

E.g run some dB query on server start, e.t.c, also maybe an initi function

Sharing of dB struct instance(this make using custom dB more easy

Also how does env works within the server is it just like normal go application

Lastly is there a way to use docker compose with encore( instead of building and hosting images before usage in compose file) like a normal docker and docker compose flow

@marcuskohlberg
Copy link
Member

If you want to customize the initialization behavior of your service, you can define a service struct and define custom initialization logic with that. See the service struct docs for more info.

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