-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using pre-build nginx:latest image, updated build.sh
- Loading branch information
Showing
5 changed files
with
11 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# update JS dependencies | ||
# update dependencies | ||
|
||
# force update on asset-packagist | ||
curl https://asset-packagist.org/package/npm-asset/katex -D - >/dev/null | ||
curl https://asset-packagist.org/package/npm-asset/vis-network -D - >/dev/null | ||
curl https://asset-packagist.org/package/npm-asset/jquery -D - >/dev/null | ||
curl https://asset-packagist.org/package/npm-asset/highlightjs--cdn-assets -D - >/dev/null | ||
|
||
# composer clear-cache | ||
# rm -rf vendor | ||
composer update -v | ||
|
||
# update highlight js | ||
cp vendor/npm-asset/highlightjs--cdn-assets/highlight.min.js ../.js/ | ||
# update highlight css | ||
cp vendor/npm-asset/highlightjs--cdn-assets/styles/atom-one-dark.min.css ../.styles/ | ||
|
||
# update jquery | ||
cp vendor/npm-asset/jquery/dist/jquery.min.js ../.js/ | ||
|
||
# update katex | ||
cp vendor/npm-asset/katex/dist/katex.min.js ../.js/ | ||
cp vendor/npm-asset/katex/dist/contrib/auto-render.min.js ../.js/ | ||
cp vendor/npm-asset/katex/dist/katex.min.css ../.styles/ | ||
cp -r vendor/npm-asset/katex/dist/fonts ../.styles/ | ||
|
||
# update mermaid | ||
# cp vendor/npm-asset/mermaid/dist/mermaid.min.js ../.js/ | ||
# cp vendor/npm-asset/mermaid/dist/mermaid.min.js.map ../.js/ | ||
|
||
# update vis-network | ||
cp vendor/npm-asset/vis-network/dist/vis-network.min.js ../.js/ | ||
cp vendor/npm-asset/vis-network/dist/vis-network.min.js.map ../.js/ | ||
cp vendor/npm-asset/vis-network/dist/dist/vis-network.min.css ../.styles/ | ||
|
||
# update Parsedown dependencie | ||
cd .. | ||
# composer clear-cache | ||
# rm -rf vendor | ||
composer update -v | ||
|
||
|
||
#cp perlite/vendor/erusev/parsedown/Parsedown.php perlite/ | ||
|
||
# remove old container and images | ||
# docker container rm perlite; | ||
# docker container rm perlite_web; | ||
# docker container rm perlite_web_dev; | ||
# docker image rm sec77/perlite_web:stable; | ||
# docker image rm sec77/perlite; | ||
# docker image rm php; | ||
|
||
# # rebuild and start | ||
# cd perlite | ||
# docker build -t sec77/perlite:latest . --network host; | ||
# cd ..; | ||
# docker-compose --file docker-compose.yml up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters