Skip to content

Theme from volumes deleted #158

@keskistok

Description

@keskistok

Im adding the theme Im developing using the volumes like in the below example.

volumes:
            - ./data:/data
            - ./code/stokpress:/app/wp-content/themes/stokpress

But when I run the docker-compose up command the theme gets removed in Checking themes step. Since the theme is not published or available on an external domain im not able to add it in the THEMES part. This is when Im starting from a clean database where the theme has never ben activated.

This is the output during the installation:

wordpress_1   | ==> Checking themes
wordpress_1   | Warning: Ignoring ambiguous empty slug value.
wordpress_1   | Success: Theme already installed.
wordpress_1   |          Deleted 'stokpress/resources' theme.
wordpress_1   | Success: Deleted 1 of 1 themes.

The theme is built on the Sage 9 starter theme from Roots.it and that makes the theme name listed like this using wp cli:

admin@b7d504259eb0:/app$ wp theme list
+-------------------+----------+--------+---------+
| name              | status   | update | version |
+-------------------+----------+--------+---------+
| stokpress/resources | inactive | none   | 9.0.9   |
+-------------------+----------+--------+---------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions