Once Panel is Installed - remove 'panel.install', true)?

panel

#1

Once I install the panel on my remote server, do I comment out the config setting that activates the installation?

c::set(‘panel.install’, true);


#2

The reason I’m asking is that every time I hit the panel after a fresh deploy, it wants to redo the installation.


#3

It should not do if you have at least one user account created. I still have this in my config and never see it again after the first account has been set. Do you deploy with no user accounts set?

You can set it to true for local and false for live using domain based configs.


#4

I think it was happening because my deployment was overwriting the user directory every time.

Pretty sure I have it buttoned up, but I didn’t know about the domain-based configuration option. Thank you!


#5

It is not necessary to set it to true for local development, because that works out of the box, anyway.

Setting the panel.install option to true on the remote server can be dangerous, so that setting should always be removed after Panel installation as explained in the docs.


#6

This has never worked for me, I have always had to set it locally. I use vagrant and my sites use a .dev extension. I used to use .local which i think Kirby can detect, but ran into conflicts with a piece of software a couple of years ago.


#7

Well, that is an exception then due to your setup. localhost works without any config setting.

As I said, if you don’t use multiple config files or if something is wrong with your config files, setting panel.installation to true is dangerous. So it is highly recommended to remove that line again, no matter in which config file.


#8

Sure, safety first. … :slight_smile: