R
R
romaro2021-02-25 17:31:42
linux
romaro, 2021-02-25 17:31:42

What is the best Linux directory to store project sources in?

Now the source codes of web projects are stored in the Windows file system. The structure is:
- code
- - project1
- - - dist
- - - src
- - - etc.
- - project 2

One of the projects needs to be transferred to the WSL/Ubuntu file system. In which folder is it more correct to place the sources from which the site is built?

How correct would be the placement in the user's home folder home/usernsme/myprojectsources/ ?

It is clear that there are no strict rules, but I would like to use the traditional arrangement.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Yarkov, 2021-02-25
@yarkov

How correct would be the placement in the user's home folder home/usernsme/myprojectsources/ ?

Absolutely correct decision. I have in /home/user/git .

D
Dr. Bacon, 2021-02-25
@bacon

Which one is more convenient for you, there is no "traditional location" for the user

B
BorLaze, 2021-02-25
@BorLaze

Sources must be in the git.
And where this or that user will pull out from is a personal intimate matter of this or that user.

I
Ildar, 2021-02-25
@vistoyn

Install Linux and use it, because the sites run on Linux mostly. And the site environment should match the development environment. For example, the same Unix rights. I used to develop in a visible way and got tired of the fact that there is no compatibility with Linux. There are no windows versions of plugins specific for php. That pecl does not compile, due to the lack of libraries, then something else. I had to install cygwin and mingw. At some point, I got tired of it and switched to ubuntu. It has become much easier.
The solution, if you do not want to switch to Linux - VirtualBox with Linux and sites there. You can Docker or LXC and sites there.
By default, the folder /var/www/html
Alternatively, you can use: /www/project or /srv/project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question