mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-10 00:18:40 +00:00
Fix build
This commit is contained in:
parent
9db86574da
commit
4b906e0bb0
|
|
@ -6,7 +6,6 @@
|
||||||
# Setting up database for demo and testing
|
# Setting up database for demo and testing
|
||||||
mysql -e 'drop database if exists oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
mysql -e 'drop database if exists oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
||||||
mysql -e 'create database oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
mysql -e 'create database oms;' -u ${DB_USER} -p${DB_PASSWORD}
|
||||||
#echo "USE mysql;\nUPDATE user SET password=PASSWORD('123456') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
|
||||||
|
|
||||||
# Build js
|
# Build js
|
||||||
#. Js/build.sh
|
#. Js/build.sh
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ MAIL_ADDR=""
|
||||||
|
|
||||||
# Authentications
|
# Authentications
|
||||||
DB_USER="root"
|
DB_USER="root"
|
||||||
DB_PASSWORD="123456"
|
DB_PASSWORD=""
|
||||||
|
|
||||||
# Git variables
|
# Git variables
|
||||||
GITHUB_URL[0]="https://github.com/Orange-Management/Orange-Management.git"
|
GITHUB_URL[0]="https://github.com/Orange-Management/Orange-Management.git"
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ apt-get install npm git php7.2 php7.2-cli php7.2-common php7.2-mysql php7.2-pgsq
|
||||||
# USE mysql;
|
# USE mysql;
|
||||||
# mysql < 5.7
|
# mysql < 5.7
|
||||||
# UPDATE user SET plugin='mysql_native_password' WHERE User='root';
|
# UPDATE user SET plugin='mysql_native_password' WHERE User='root';
|
||||||
|
# UPDATE user SET password=PASSWORD("") WHERE User='root';
|
||||||
# FLUSH PRIVILEGES;
|
# FLUSH PRIVILEGES;
|
||||||
# exit;
|
# exit;
|
||||||
# else mysql >= 5.7
|
# else mysql >= 5.7
|
||||||
|
|
@ -59,8 +60,6 @@ sudo useradd -d /home/test -g mail -u 1001 -s /bin/bash test
|
||||||
# npm
|
# npm
|
||||||
npm install -D jasmine jasmine-node istanbul jasmine-console-reporter supertest jasmine-supertest
|
npm install -D jasmine jasmine-node istanbul jasmine-console-reporter supertest jasmine-supertest
|
||||||
|
|
||||||
systemctl restart apache2
|
|
||||||
|
|
||||||
# FTP
|
# FTP
|
||||||
apt-get install vsftpd
|
apt-get install vsftpd
|
||||||
|
|
||||||
|
|
@ -68,3 +67,5 @@ apt-get install vsftpd
|
||||||
# write_enable=YES
|
# write_enable=YES
|
||||||
# anon_upload_enable=YES
|
# anon_upload_enable=YES
|
||||||
# connect_from_port_20=NO
|
# connect_from_port_20=NO
|
||||||
|
|
||||||
|
systemctl restart apache2
|
||||||
4
setup.sh
4
setup.sh
|
|
@ -25,6 +25,10 @@ do
|
||||||
git clone -b ${GIT_BRANCH} $i
|
git clone -b ${GIT_BRANCH} $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cd ${BASE_PATH}/Website
|
||||||
|
git submodule update --init --recursive
|
||||||
|
git submodule foreach git checkout develop
|
||||||
|
|
||||||
cd ${ROOT_PATH}
|
cd ${ROOT_PATH}
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
git submodule foreach git checkout develop
|
git submodule foreach git checkout develop
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user