apioo / fusio

Open source API management platform
https://www.fusio-project.org
Apache License 2.0
1.85k stars 221 forks source link

Clean install option #137

Open christoph-bessei opened 6 years ago

christoph-bessei commented 6 years ago

The current fusio installer (composer create-project fusio/fusio) just clones the apioo/fusio repository. It would be nice to have a "clean install"-option, which removes examples and documentation after installation. This could be done by a composer composer create-project fusio/fusio script or an own fusio console command e.g. php bin/fusio system:removeExamples. The console command is probably better:

  1. It could be interactive, which is not possible with composer scripts: composer/composer#5856
  2. The user can decide if and which files should be removed

Examples of (probably) unnecessary files/directories:

chriskapp commented 6 years ago

Yes, i think also the console command would be a good solution. We should probably show all files which get deleted through the command, then the user need to confirm the action.

chriskapp commented 6 years ago

In the latest 1.1.2 release we have a new command system:clean which can remove all demo files from the repository. We use this command now also internally but please check whether this works for your case.