new files
parent
a28dcc710c
commit
25ffe19d77
|
@ -23501,3 +23501,12 @@ vim ./update_all
|
|||
ls -l
|
||||
m
|
||||
exit
|
||||
mongo
|
||||
exit
|
||||
r
|
||||
exit
|
||||
r
|
||||
exit
|
||||
r
|
||||
sudo service nginx restart
|
||||
exit
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/gamewheel/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git branch
|
||||
git pull
|
||||
if [ -f "bower.js" ]; then
|
||||
bower install
|
||||
fi
|
||||
if [ -f "gulpfile.js" ]; then
|
||||
gulp build
|
||||
fi
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
||||
|
||||
r
|
|
@ -21,7 +21,7 @@ server {
|
|||
add_header Content-Type text/plain;
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
||||
add_header Access-Control-Allow-Headers "Authorization, Content-Type";
|
||||
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-gamewheel";
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
return 200;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ server {
|
|||
add_header Content-Type text/plain;
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
||||
add_header Access-Control-Allow-Headers "Authorization, Content-Type";
|
||||
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-gamewheel";
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
return 200;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ server {
|
|||
add_header Content-Type text/plain;
|
||||
add_header Access-Control-Allow-Origin $http_origin;
|
||||
add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS";
|
||||
add_header Access-Control-Allow-Headers "Authorization, Content-Type";
|
||||
add_header Access-Control-Allow-Headers "Authorization, Content-Type, x-gamewheel";
|
||||
add_header Access-Control-Allow-Credentials true;
|
||||
return 200;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue