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

Possibility to run custom scripts on startup #102

Closed
botzill opened this issue Mar 16, 2019 · 4 comments
Closed

Possibility to run custom scripts on startup #102

botzill opened this issue Mar 16, 2019 · 4 comments

Comments

@botzill
Copy link
Contributor

botzill commented Mar 16, 2019

Hi.

I was wondering if you plan to add some custom scripts that can be plug in and run after the app was started. Such a script could create automatically api via strapi generate:api or any other command. This way we can easily startup with already defined resources types. If you plan to add such feature I can make PR.

Let me know what you think about it.

@lauriejim
Copy link
Contributor

Hello!
The feature you need is powered by the ./config/bootstrap.js file.
This function is called just before the start of the server. In this function you will access to all the Strapi application functions.
Hop it help.

@alexandrebodin
Copy link
Member

HI,

We just released a full rebuild of our docker image 🎉
We are closing the issues and open PRs to start fresh.

If you feel like something is missing or want to add things feel free to open new PRs ! 💯

@dzcpy
Copy link

dzcpy commented Apr 4, 2022

How about V4? Is it the same?

@VadimGut
Copy link

VadimGut commented Jul 18, 2022

How about V4? Is it the same?

It is a bit different
checkout the docs here

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

5 participants