Skip to content
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

Symfony Exception: "entrypoints.json" is missing when rendering template #910

Open
PhilipJonasFranz opened this issue Jun 27, 2022 · 4 comments

Comments

@PhilipJonasFranz
Copy link

PhilipJonasFranz commented Jun 27, 2022

After running make setup and docker-compose on Ubuntu 22.04, the containers are created, but when viewing the Web UI, the following Symfony Exception is displayed:

An exception has been thrown during the rendering of a template ("Could not find the entrypoints file from Webpack: the file 
"/application/public/assets/entrypoints.json" does not exist.").

The error occurs here:

in [assets/themes/default/templates/base.html.twig ](http://localhost/gitlist/)(line 9)

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>{% block title %}{{ 'REPOSITORY_LIST_TITLE'|trans }}{% endblock %} &middot; {{ title }}</title>
        {% block stylesheets %}{% endblock %}
        {% if default_blob_viewer != 'simple' %}
            {{ encore_entry_link_tags(default_blob_viewer ~ '/css/main') }}    <<<<< Exception occurs here
        {% endif %}
        {{ encore_entry_link_tags(theme ~ '/css/main') }}
        {% block javascripts %}{% endblock %}
        {{ encore_entry_script_tags(theme ~ '/js/main') }}

The same setup process was working fine on a Win10 machine.

@PhilipJonasFranz PhilipJonasFranz changed the title entrypoints.json is missing when rendering template Symfony Exception: "entrypoints.json" is missing when rendering template Jun 27, 2022
@klaussilveira
Copy link
Owner

Development version is not suited for end-users: https://github.com/klaussilveira/gitlist#installation

image

You should not use the containers or any of the dev setup in production.

@PhilipJonasFranz
Copy link
Author

I attempted to install the release version for a considerable amount of time but simply was unable to get it to work with nginx. And as I have just started to learn how nginx works I am unable to debug the issue.

I tried to use the config in the docker directory of the project, but that did not work.

Generally the „ Point your webserver to the /var/www/gitlist/public folder, where index.php is.“ step seems to be not as trivial as it seems and there should be more detailed instructions on how to do this, especially for beginners like myself.

@PhilipJonasFranz
Copy link
Author

Personally I think it would be great to provide an official docker image for the project. There already are some unofficial images out there, but sadly none of them seem to support ARM64, which is the platform I want to install on.

If you could provide official images this would be a great time saver and make it much more easy to get started. Also this shouldn’t be to hard as you already have containers for development.

@klaussilveira
Copy link
Owner

Oh, I agree too. But that is a lot of work, specially when you need to support multiple platforms and architectures. PR's providing that functionality are always welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants