Which directory of my PHP webapp should I publish on git? - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Friday, November 10, 2023

Which directory of my PHP webapp should I publish on git?

I am working on a PHP webapp. I have to publish it on a distributed version control system (git) but I am not sure wether if to publish the root directory of the project or the public_html folder.

The root folder contains composer-related files and configuration files.

Also, what are the best practices to include the config files, which have to be omitted/obscured from the version control?

The project is structured as follows:

+ root
|_ (...)
|_ config.php
|_ composer.json
|_ composer.lock
|_ public_html
    |_ index.php
    |_ (...) // The rest of the project



source https://stackoverflow.com/questions/77452746/which-directory-of-my-php-webapp-should-i-publish-on-git

No comments:

Post a Comment