fix(): bug file path

pull/34/head
Magicalex 2018-11-30 04:47:57 +01:00
parent 6b023d1890
commit 92e54a64dd
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
2 changed files with 25 additions and 7 deletions

View File

@ -80,7 +80,7 @@ services:
env_file: env_file:
- /mnt/docker/flarum/flarum.env - /mnt/docker/flarum/flarum.env
volumes: volumes:
- /mnt/docker/flarum/assets:/flarum/app/assets - /mnt/docker/flarum/assets:/flarum/app/public/assets
- /mnt/docker/flarum/extensions:/flarum/app/extensions - /mnt/docker/flarum/extensions:/flarum/app/extensions
- /mnt/docker/flarum/nginx:/etc/nginx/conf.d - /mnt/docker/flarum/nginx:/etc/nginx/conf.d
depends_on: depends_on:
@ -136,10 +136,27 @@ docker-compose up -d
### Upgrade to v0.1.0-beta.8 from v0.1.0-beta.7 ### Upgrade to v0.1.0-beta.8 from v0.1.0-beta.7
:warning: Disable 3rd party extensions prior to upgrading. :warning: Disable 3rd party extensions prior to upgrading in panel admin.
Add install.txt file in assets folder
```
touch /mnt/docker/flarum/assets/installed.txt
chown $UID: /mnt/docker/flarum/assets/installed.txt
```
Remove old assets
``` ```
docker pull mondedie/docker-flarum:0.1.0-beta.7.1-stable && docker-compose up -d cd /mnt/docker/flarum/assets
rm *.js *.css *.json
```
Create env file + set chown on this file
Update your docker-composer file
```
docker pull mondedie/docker-flarum:0.1.0-beta.8-stable
docker-compose up -d
``` ```
and... and...
@ -149,7 +166,8 @@ and...
:warning: Disable 3rd party extensions prior to upgrading. :warning: Disable 3rd party extensions prior to upgrading.
``` ```
docker pull mondedie/docker-flarum:0.1.0-beta.7.1-stable && docker-compose up -d docker pull mondedie/docker-flarum:0.1.0-beta.7.1-stable
docker-compose up -d
``` ```
Navigate to `yourforum.com/admin`, enter your database password and update. Navigate to `yourforum.com/admin`, enter your database password and update.

View File

@ -43,7 +43,7 @@ if [ -f '/flarum/app/extensions/composer.repositories.txt' ]; then
json=$(echo $line | cut -d '|' -f2) json=$(echo $line | cut -d '|' -f2)
echo "[INFO] Adding ${repository} composer repository" echo "[INFO] Adding ${repository} composer repository"
composer config repositories.${repository} "${json}" composer config repositories.${repository} "${json}"
done < extensions/composer.repositories.txt done < /flarum/app/extensions/composer.repositories.txt
fi fi
# Custom vhost flarum nginx # Custom vhost flarum nginx
@ -56,7 +56,7 @@ if [ ! -e '/etc/nginx/conf.d/custom-vhost-flarum.conf' ]; then
fi fi
# if no installation was performed before # if no installation was performed before
if [ -e '/flarum/app/public/assets/install.txt' ]; then if [ -e '/flarum/app/public/assets/installed.txt' ]; then
echo "[INFO] Flarum already installed, init app..." echo "[INFO] Flarum already installed, init app..."
sed -i -e "s|<DEBUG>|${DEBUG}|g" \ sed -i -e "s|<DEBUG>|${DEBUG}|g" \
@ -111,7 +111,7 @@ else
php /flarum/app/flarum install --file=/flarum/app/config.yml php /flarum/app/flarum install --file=/flarum/app/config.yml
echo "[INFO] End of flarum installation" echo "[INFO] End of flarum installation"
echo "Done" > /flarum/app/public/assets/install.txt echo "Done" > /flarum/app/public/assets/installed.txt
fi fi
# Set permissions for /flarum folder # Set permissions for /flarum folder