WebFaction
Community site: login faq

Hi, I want to have multiple environments (dev, stage, production) with same GIT repository what includes .htaccess file. Is it possible on WF to have dev and stage environments password protected and not exclude .htaccess from GIT?

asked 21 Jan '15, 15:23

ibobik
3115
accept rate: 0%


.htaccess files stored in a git repository aren't used to control access to that repository. They're just another versioned file within the repo.

There's no way to provide different levels of access to subdirectories within a single repository.

My recommendation is that you install separate git applications from our control panel, and use separate repos, for each of your environments.

permanent link

answered 21 Jan '15, 23:01

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×75
×1

question asked: 21 Jan '15, 15:23

question was seen: 1,439 times

last updated: 21 Jan '15, 23:01

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM