Init V4 community edition (#2265)
* Init V4 community edition * Init V4 community edition
This commit is contained in:
7
.build/aria2.supervisor.conf
Normal file
7
.build/aria2.supervisor.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
[supervisord]
|
||||
nodaemon=false
|
||||
|
||||
[program:background_process]
|
||||
command=aria2c --enable-rpc --save-session /cloudreve/data
|
||||
autostart=true
|
||||
autorestart=true
|
||||
15
.build/build-assets.sh
Executable file
15
.build/build-assets.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
export NODE_OPTIONS="--max-old-space-size=8192"
|
||||
|
||||
# This script is used to build the assets for the application.
|
||||
cd assets
|
||||
rm -rf build
|
||||
yarn install --network-timeout 1000000
|
||||
yarn version --new-version $1 --no-git-tag-version
|
||||
yarn run build
|
||||
|
||||
# Copy the build files to the application directory
|
||||
cd ../
|
||||
zip -r - assets/build >assets.zip
|
||||
mv assets.zip application/statics
|
||||
2
.build/entrypoint.sh
Executable file
2
.build/entrypoint.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
supervisord -c ./aria2.supervisor.conf
|
||||
./cloudreve
|
||||
Reference in New Issue
Block a user