inital commit
This commit is contained in:
30
auto_script/shell_code/.custom_commands.sh
Normal file
30
auto_script/shell_code/.custom_commands.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# copies the project directory from 100 server to 98 and 114
|
||||
function deploy() {
|
||||
#chown root:root /var/www/html/ -R;
|
||||
#find /var/www/html/ -type d -exec chmod 777 {} \;
|
||||
|
||||
# chmod 777 /opt/app.sipay.com.tr/storage /opt/app.sipay.com.tr/vendor /opt/app.sipay.com.tr/sipayresource -R;
|
||||
|
||||
|
||||
rsync -avzhe ssh --owner --group --progress --recursive --files-from="include.txt" --exclude-from="exclude.txt" "/var/www/html/" "apache@45.55.43.211:/var/www/html/"
|
||||
# rsync -avzhe ssh --owner --group --progress "/opt/app.sipay.com.tr/sipayresource/assets" "bruce@176.53.6.134:/opt/app.sipay.com.tr/sipayresource/assets"
|
||||
|
||||
#/bin/pssh -A -i -H "176.53.6.134" -l apache 'chown -R apache:apache /opt/app.sipay.com.tr/ && chmod -R 1777 /opt/app.sipay.com.tr/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/public/files && chmod -R 1777 /opt/app.sipay.com.tr/public/files/ && chmod -R 1777 /opt/app.sipay.com.tr/admin/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/admin/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/admin/public/files && chmod -R 1777 /opt/app.sipay.com.tr/admin/public/files/ && chmod -R 1777 /opt/app.sipay.com.tr/merchant/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/merchant/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/merchant/public/files && chmod -R 1777 /opt/app.sipay.com.tr/merchant/public/files/ && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/public/files && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/public/files/* && cd /opt/app.sipay.com.tr/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/ && php72 artisan cache:clear && cd /opt/app.sipay.com.tr/admin/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/admin/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/admin/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/admin/ && php72 artisan cache:clear && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan cache:clear && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan cache:clear'
|
||||
|
||||
#chmod 755 /var/www/html/ -R;
|
||||
|
||||
}
|
||||
|
||||
#function deploy104() {
|
||||
# chown apache:apache /opt/app.sipay.com.tr/ -R;
|
||||
# find /opt/app.sipay.com.tr/ -type d -exec chmod 755 {} \;
|
||||
# chmod 777 /opt/app.sipay.com.tr/storage /opt/app.sipay.com.tr/vendor /opt/app.sipay.com.tr/sipayresource -R;
|
||||
# rsync -avzhe ssh --owner --group --progress --exclude-from="exclude.txt" "/opt/app.sipay.com.tr/" "bruce@176.53.34.104:/opt/app.sipay.com.tr"
|
||||
# rsync -avzhe ssh --owner --group --progress "/opt/app.sipay.com.tr/sipayresource/assets" "bruce@176.53.34.104:/opt/app.sipay.com.tr/sipayresource/assets"
|
||||
#
|
||||
# /bin/pssh -A -i -H "176.53.34.104" -l bruce 'chown -R apache:apache /opt/app.sipay.com.tr/ && chmod -R 1777 /opt/app.sipay.com.tr/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/public/files && chmod -R 1777 /opt/app.sipay.com.tr/public/files/ && chmod -R 1777 /opt/app.sipay.com.tr/admin/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/admin/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/admin/public/files && chmod -R 1777 /opt/app.sipay.com.tr/admin/public/files/ && chmod -R 1777 /opt/app.sipay.com.tr/merchant/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/merchant/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/merchant/public/files && chmod -R 1777 /opt/app.sipay.com.tr/merchant/public/files/ && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/bootstrap/cache/ && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/storage/ && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/public/files && chmod -R 1777 /opt/app.sipay.com.tr/ccpayment/public/files/* && cd /opt/app.sipay.com.tr/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/ && php72 artisan cache:clear && cd /opt/app.sipay.com.tr/admin/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/admin/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/admin/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/admin/ && php72 artisan cache:clear && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/merchant/ && php72 artisan cache:clear && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan config:cache && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan view:clear && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan route:clear && cd /opt/app.sipay.com.tr/ccpayment/ && php72 artisan cache:clear'
|
||||
# chown apache:apache /opt/app.sipay.com.tr/ -R;
|
||||
# chmod 777 /opt/app.sipay.com.tr/ -R;
|
||||
#
|
||||
#}
|
||||
51
auto_script/shell_code/exclude.txt
Normal file
51
auto_script/shell_code/exclude.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
/.idea
|
||||
/vendor
|
||||
/epicvelocity
|
||||
/db
|
||||
/api_resource
|
||||
/auto_script
|
||||
/logs
|
||||
/tmp
|
||||
/epicvelocity1
|
||||
/src_OLD
|
||||
/src.zip
|
||||
/migrate.zip
|
||||
/TestDeploymeent
|
||||
/config/app.constant.php
|
||||
/config/app.settings.php
|
||||
/webroot/Staff/pdf
|
||||
/webroot/Staff/sertg
|
||||
/webroot/Staff/vendor
|
||||
/webroot/Staff/dbconfig.php
|
||||
/webroot/AdminAccountImage
|
||||
/webroot/AdminAccountImage
|
||||
/webroot/agreement_signed_content
|
||||
/webroot/agreenment_contents
|
||||
/webroot/attach-documents
|
||||
/webroot/chat_attachment
|
||||
/webroot/client_agreement_files
|
||||
/webroot/cmsuser_logo
|
||||
/webroot/compiles
|
||||
/webroot/contact_photo
|
||||
/webroot/epicvelocity/clients_docs
|
||||
/webroot/epicvelocity/letters
|
||||
/webroot/epicvelocity/lib
|
||||
/webroot/epicvelocity/pdf
|
||||
/webroot/epicvelocity/vendor
|
||||
/webroot/epicvelocity/images
|
||||
/webroot/file_path
|
||||
/webroot/html_content
|
||||
/webroot/html_history_code
|
||||
/webroot/invoice-logo
|
||||
/webroot/media
|
||||
/webroot/member_education_templates
|
||||
/webroot/member_help_templates
|
||||
/webroot/mpdf60
|
||||
/webroot/payment_vendor
|
||||
/webroot/project-media-files
|
||||
/webroot/rtg_optimize
|
||||
/webroot/supportsfile
|
||||
/webroot/user-photo
|
||||
/webroot/velocity
|
||||
/webroot/dropbox
|
||||
/webroot/backend
|
||||
17
auto_script/shell_code/include.txt
Normal file
17
auto_script/shell_code/include.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
/config/app.default.php
|
||||
/config/app.php
|
||||
/config/bootstrap.php
|
||||
/config/bootstrap_cli.php
|
||||
/config/paths.php
|
||||
/config/routes.php
|
||||
/src/
|
||||
/webroot/Staff/
|
||||
/webroot/Staff/
|
||||
/webroot/Staff/getSertgInfo.php
|
||||
/webroot/js
|
||||
/webroot/css
|
||||
/webroot/rtgv3
|
||||
/webroot/new_layout
|
||||
/webroot/epicvelocity/css
|
||||
/webroot/epicvelocity/js
|
||||
|
||||
Reference in New Issue
Block a user