-
Notifications
You must be signed in to change notification settings - Fork 161
why tag list in my web is blank? #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Good question! Could you tell us the exact steps you used to get to that point? Please start from a fresh clone of the repo. That will help others reproduce the problem. Are all the environment variables set as described in the README? The tests by design don't check your installed server config. |
Same experience in the Docker version. I found this error in apache:
Its because the user is different with the owner of git repo content. Modify the Dockerfile with this And this the fix: # Expose project arg as env
ENV PROJECT $PROJECT
# The Apache config with set "HOME" env
RUN echo '\
<Directory /usr/local/elixir/http/> \n\
Options +ExecCGI \n\
AllowOverride None \n\
Require all granted \n\
SetEnv PYTHONIOENCODING utf-8 \n\
SetEnv LXR_PROJ_DIR /srv/elixir-data \n\
SetEnv HOME /var/www \n\
</Directory> \n\
<Directory /usr/local/elixir/api/> \n\
SetHandler wsgi-script \n\
Require all granted \n\
SetEnv PYTHONIOENCODING utf-8 \n\
SetEnv LXR_PROJ_DIR /srv/elixir-data \n\
SetEnv HOME /var/www \n\
</Directory> \n\
AddHandler cgi-script .py \n\
<VirtualHost 0.0.0.0:80> \n\
ServerName localhost \n\
DocumentRoot /usr/local/elixir/http \n\
WSGIScriptAlias /api /usr/local/elixir/api/api.py \n\
AllowEncodedSlashes On \n\
RewriteEngine on \n\
RewriteRule "^/$" "/'$PROJECT'/latest/source" [R] \n\
RewriteRule "^/(?!api|acp).*/(source|ident|search)" "/web.py" [PT] \n\
RewriteRule "^/acp" "/autocomplete.py" [PT] \n\
</VirtualHost> ' > /etc/apache2/sites-available/000-default.conf
# Fix www-data user
RUN echo '\n\
[user]\n\
email = [email protected]\n\
name = elixir\n\
[safe]\n\
directory = /srv/elixir-data/'$PROJECT'/repo\n\
' > /var/www/.gitconfig && \
chown www-data:www-data /var/www/.gitconfig GIT will look .gitconfig in user home directory using HOME variable, so it's important to set it. |
as the picture show:

and it's work success by exec


./script.sh list-tags
andprove
The text was updated successfully, but these errors were encountered: