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

[Question] Uneccesary Production Files #827

Closed
videsignz opened this issue Oct 3, 2016 · 7 comments
Closed

[Question] Uneccesary Production Files #827

videsignz opened this issue Oct 3, 2016 · 7 comments

Comments

@videsignz
Copy link

Hey Everyone,

Is there any documentation on which folders/files can be removed in production. I know there is quite a bit used for testing and such but I feel those files are not suited or needed on a live server.

Can anyone help with this a bit?

@elbenjaz
Copy link

elbenjaz commented Oct 3, 2016

Hi,

I've removed the folders "/_one-click-installation", "/_pictures", "/tests", "application/_installation".
Also I followed the instructions in the README.md file (section: What the hell are .travis.yml, .scrutinizer.yml etc.) and I deleted all the files except .htaccess, composer.json

@videsignz
Copy link
Author

@elbenjaz Thanks for the reply...I have done the same regarding those files. I was looking a bit deeper like in the vendor folder...Items such as:

PHPUnit
Symfany
Sebastian
PHPSpec
Doctrine

@videsignz
Copy link
Author

I'n not completely in tune with what those scripts do and what purpose they have in the app. Therefore, I was hoping for answers here.

@panique
Copy link
Owner

panique commented Oct 3, 2016

:) Hey, the only files that are needed are:

application/.
public/.
.htaccess
index.php
composer.json

The rest is just for tests, auto-installation, images for the repo etc...

@videsignz
Copy link
Author

@panique Hey Chris,

What about gregwar/captcha, phpmailer, and the composer folder? I assume those are necessary?

@videsignz
Copy link
Author

videsignz commented Oct 4, 2016

Wow, I am really not up to date on Composer and the proper ways to use it. ughhhhh....

If I am right, the vendor folder is needed as well as whatever dependencies are needed for HUGE to run properly. Such as PHP mailer and Gregwar Captcha.

I'm thinking, for production, I can delete the vendor folder completely, Remove the "require-dev" entries completely from composer.json and then run composer and require only the dependencies needed for php mailer and captcha.

Am I correct in this thinking? Sorry for being such a newbie.

@panique
Copy link
Owner

panique commented Oct 6, 2016

:) You'll definitly need the vendor folder in production too, as it holds all the external libraries you (or your framework or both) need, so there's not really a big difference between dev/test/production (except testing etc), please just have a look on all the awesome tutorials on composer, it's really easy to understand and it will make your development so much easier and faster and cleaner :)

@panique panique closed this as completed Dec 4, 2016
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

3 participants