generated from Fascinated/nextjs-13-template-with-tailwindcss
Add auto downloading of files #4
@ -14,4 +14,4 @@ services:
|
|||||||
- 3000:3000
|
- 3000:3000
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.json:/usr/src/app/config.json:ro # The application config (Must be created before starting the service)
|
- ./config.json:/usr/src/app/config.json:ro # The application config (Must be created before starting the service)
|
||||||
- ./public:/usr/src/app/public:rw # Used for public facing images (uncomment if you are using your own images - see the public directory)
|
- ./public:/usr/src/app/public:rw # Used for public facing images (eg: avatar and background)
|
||||||
|
2
start.sh
2
start.sh
@ -14,7 +14,7 @@ if [ -z "$(ls -A $workDir/public)" ]; then
|
|||||||
dir=$workDir/public/$item
|
dir=$workDir/public/$item
|
||||||
if [ ! -e "$dir" ]; then
|
if [ ! -e "$dir" ]; then
|
||||||
echo "Downloading $item to directory $dir"
|
echo "Downloading $item to directory $dir"
|
||||||
wget -P $dir $baseUrl$item
|
wget -Pq $dir $baseUrl$item
|
||||||
echo "Done"
|
echo "Done"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user