Comments (2)
this is what i needed to do to get my domain to work. NOTE: i do not use the name gitlist
, on my domain, this way i can use https://git.supyrow.com and not need to use git.supyrow.com/gitlist
.htaccess
<IfModule mod_rewrite.c>
Options -MultiViews +FollowSymLinks
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^.*$ %2index.php [QSA,L]
SetEnv default_repository_dir ../../repositories
</ifmodule>
apache2 config>>
gitlist.conf
Alias /gitlist /var/www/git.supyrow.com/public
Alias /assets /var/www/git.supyrow.com/public/assets
<Directory /var/www/git.supyrow.com/public>
Options FollowSymLinks
AllowOverride All
</Directory>
LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error_gitlist.log
CustomLog ${APACHE_LOG_DIR}/access_gitlist.log combined
setting default_repository_dir
in config.yml
seems to do nothing. so setting direct in .htaccess
did the trick. this is relative from public/.
I use hosting24.com's webhosting service and another thing that needed to be done was remove due to an odd version of git
running on the server.
--ignore-empty-lines
from a line in src/SCM/System/Git/CommandLine.php
$output = $this->run(['show', '-w', '--ignore-empty-lines', '-b', '--cc', self::DEFAULT_COMMIT_FORMAT,
to
$output = $this->run(['show', '-w', '-b', '--cc', self::DEFAULT_COMMIT_FORMAT,
================================================================
disregard, the part about --ignore-empty-lines
doesnt apply to you.
however, what worked for me. was to set up a folder just for , lets say
../../repositories
it needed to be relative
and wouldn't work for me using a direct line to
/var/lib/git/repositories
have symlinks going to that directory. and it will find whatever is in there. (this is what I found to work.
also. PERMISSIONS. needs to be set for the user that runs the webserver. this line helped with that.
fatal: detected dubious ownership in repository at
sudo git config --system --add safe.directory /home/git/repositories/me/myrepo.git
i am using the zip 2.0.0 of gitlist
from gitlist.
I think most of these issues may originate with how the cache is being handled here. The .php file which was importing the settings appears to be dynamically created in the cache with the values from config.yml the first time gitlist is run. If config.yml is changed after that point without the cache being cleared (rm -rf /var/cache) then any changes to this file do nothing at all and the user has no idea why.
from gitlist.
Related Issues (20)
- Better support for repository depth
- Php compatability HOT 1
- Gave up on installing this... HOT 3
- Search for repository in subdirectories HOT 1
- Uncaught Error: Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false HOT 2
- 404 on all assets HOT 11
- Hello, I use Gitlist 1.1.1 and I want to know if I respect the BSD-2-Clause HOT 2
- git clone over https does not work
- Support needed on installing HOT 3
- git_path from config.yml not used
- Can't create development environment HOT 1
- Can't list repositories HOT 2
- PHP 8.2 => 500 Internal Server Error, setLastErrors must be of type array, bool given HOT 2
- public/.htaccess is missing HOT 2
- automacao
- Openening a file containing the name of a branch or tag throws a CommandException
- Display Issue and Content Not Found Problem HOT 1
- Problem when adding gits
- pump_local_HMI_X2_V3.0.git HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlist.