PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Looking for DB setup script.

Open a-kenji opened this issue 3 years ago • 1 comments

Describe the desired information/correction

I am looking for a script allowing for initialization and/or migration of the database, without starting peertube itself. Is that already provided?

I am looking to install the plugins through a configuration file, rather than an interface and for that I am looking at the following steps:

  • initialize peertube
  • install plugins
  • restart peertube

With a script/command that can set the database itself up, the restart of the peertube instance would not be needed.

a-kenji avatar Sep 05 '22 15:09 a-kenji

Hello,

Can you describe your use case? Why don't you want to start peertube and then install plugins you want?

Chocobozzz avatar Sep 07 '22 12:09 Chocobozzz

Our use case is configuring peertube in a way that is ready to be deployed.

An example: Using peertube for supporting conferences is in the back of our mind, but we want to be able to test the configuration and be able to deploy the configuration (with a tool suited for deployments). We are not looking at deploying peertube at the time of setup and then manually installing the plugins through a ui.

a-kenji avatar Sep 16 '22 09:09 a-kenji

Is starting and automatically stopping PeerTube after DB creation a solution for you?

Chocobozzz avatar Sep 20 '22 06:09 Chocobozzz

Ping @a-kenji

Chocobozzz avatar Oct 10 '22 13:10 Chocobozzz

Ah, thank you for the ping!

Is starting and automatically stopping PeerTube after DB creation a solution for you?

This is indeed our current solution and it works. We thought since other functionality is exposed as a script, it could be sensible that the DB creation would be as well, which would make the initial setup a little bit smoother.

If you think this is out of scope, we of course understand.

a-kenji avatar Oct 10 '22 13:10 a-kenji

It's an interesting use case, but unfortunately we won't have time to maintain such script. If the start & stop peertube doesn't work don't hesitate to comment this issue so we can find another solution :)

Chocobozzz avatar Oct 11 '22 14:10 Chocobozzz