what's the proper way to add a Flarum extension? #65
Replies: 1 comment 1 reply
-
Hi @PrimateCoder, Thank you for reaching out with your question. Since I don't know the exact content of the project directory or the Dockerfile you are using, it's difficult for me to reproduce and figure out the issue you mentioned. Therefore, I will assume that you have a directory FROM shinsenter/flarum:latest
# copy the `www` directory into the container
ENV APP_PATH=/var/www/html
ADD --link --chown="$APP_USER:$APP_GROUP" ./www/ $APP_PATH/
# install additional packages using composer
RUN cd $APP_PATH && composer install
# adjust the permissions for directories
RUN mkdir -p $APP_PATH/html/storage $APP_PATH/public/assets
RUN chmod -R "$APP_USER:$APP_GROUP" $APP_PATH Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @shinsenter!
I've tried a couple of ways of adding Flarum extensions to shinsenter/flarum:latest but none of them seem to work properly.
What is the proper/official way to add additional Flarum extensions to your image?
Secondly, Flarum complains that certain directories don't have the correct permissions out of the box. I had to add these to my commands:
chmod -R g+w /var/www/html/storage
chmod g+w /var/www/html/public/assets/
How does it work for you?
Thanks so much for the great work!
Beta Was this translation helpful? Give feedback.
All reactions