Highlighted

Site root below Git repository

New Here ,
Sep 27, 2019

Copy link to clipboard

Copied

Let's say I have a Git repository setup, called `git-repo-web`.

 

Folder structure is as follows:

device1:git-repo-web user1$ tree
.
├── .git
├── .gitlab-ci.yml
├── .gitignore
├── README.md
└── htdocs
    ├── bootstrap
    |   └── css
    │       ├── bootstrap-theme.css
    │       ├── bootstrap-theme.min.css
    │       └── bootstrap.css
    ├── index.html
    ├── template-simple.html
    ├── template.html
    ├── terms.html
    └── whatsnew.html

 

In Dreamweaver, my site looks like this:

clipboard_image_0.png

 

If I setup the Dreamweaver site at the `git-repo-web` level, it works well with my existing git repository, but when I try to view content under htdocs it does not properly display the webpages due to the way it looks for the css files.

 

If I setup the Dreamweaver site at the `htdocs` level, the websites render perfectly, but it does not know about the existing git repo which is a level above htdocs.

 

I would like to add my Dreamweaver site at the `git-repo-web` directory level so that it recognizes the existing git repository, but I want my site root to be a directory below this, which should be `htdocs`. Is this possible?


Can I define my site at `git-repo-web` and then define a symbolic root at `htdocs`?

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

I have tried various options in the past. The problem is that Dreamweaver regards the setup level as the root directory.

 

Obviously I could move my .git, .gitignore, .gitlab-ci.yml, README.md into htdocs and make that the site root in Dreamweaver, but I was hoping for a little more flexibility in order to keep things organized.

 

I think that this is the best way.

Views

84

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Site root below Git repository

New Here ,
Sep 27, 2019

Copy link to clipboard

Copied

Let's say I have a Git repository setup, called `git-repo-web`.

 

Folder structure is as follows:

device1:git-repo-web user1$ tree
.
├── .git
├── .gitlab-ci.yml
├── .gitignore
├── README.md
└── htdocs
    ├── bootstrap
    |   └── css
    │       ├── bootstrap-theme.css
    │       ├── bootstrap-theme.min.css
    │       └── bootstrap.css
    ├── index.html
    ├── template-simple.html
    ├── template.html
    ├── terms.html
    └── whatsnew.html

 

In Dreamweaver, my site looks like this:

clipboard_image_0.png

 

If I setup the Dreamweaver site at the `git-repo-web` level, it works well with my existing git repository, but when I try to view content under htdocs it does not properly display the webpages due to the way it looks for the css files.

 

If I setup the Dreamweaver site at the `htdocs` level, the websites render perfectly, but it does not know about the existing git repo which is a level above htdocs.

 

I would like to add my Dreamweaver site at the `git-repo-web` directory level so that it recognizes the existing git repository, but I want my site root to be a directory below this, which should be `htdocs`. Is this possible?


Can I define my site at `git-repo-web` and then define a symbolic root at `htdocs`?

Adobe Community Professional
Correct answer by BenPleysier | Adobe Community Professional

I have tried various options in the past. The problem is that Dreamweaver regards the setup level as the root directory.

 

Obviously I could move my .git, .gitignore, .gitlab-ci.yml, README.md into htdocs and make that the site root in Dreamweaver, but I was hoping for a little more flexibility in order to keep things organized.

 

I think that this is the best way.

Views

85

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 27, 2019 0
New Here ,
Sep 27, 2019

Copy link to clipboard

Copied

Obviously I could move my .git, .gitignore, .gitlab-ci.yml, README.md into htdocs and make that the site root in Dreamweaver, but I was hoping for a little more flexibility in order to keep things organized.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2019 0
Adobe Community Professional ,
Sep 27, 2019

Copy link to clipboard

Copied

I have tried various options in the past. The problem is that Dreamweaver regards the setup level as the root directory.

 

Obviously I could move my .git, .gitignore, .gitlab-ci.yml, README.md into htdocs and make that the site root in Dreamweaver, but I was hoping for a little more flexibility in order to keep things organized.

 

I think that this is the best way.


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 27, 2019 1