0

I have PHP web hosting with ORCHESTRA.IO. They get PHP hosting code through GIT.

I want to provide subdomains to each user, upon successful signup to website. I want to generate these user's sub domains through PHP code. The question is that whether I can create empty folder in GIT for mapping subdomains on this folder.

Is there any other better solution for dynamically generating subdomains for users.

Thanks

Simpanoz
  • 2,729
  • 10
  • 43
  • 64
  • 1
    See also here. Funny thing is that I got -1 for exactly the same answer as there is the accepted one. http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repository – jasir Jan 01 '13 at 10:57

2 Answers2

1

Git stores files, not folders. The best way to get Git to track a folder is by creating a dummy file in it.

robrich
  • 13,017
  • 7
  • 36
  • 63
0

The best is probably to create a folder and put .gitignore in the directory.

Content of .gitignore:

*
!.gitignore
jasir
  • 1,461
  • 11
  • 28