9/11/2023 0 Comments Git server centos 7![]() ![]() Initiate Create the local site repo, add.Here are the rough steps you need to follow in order to deploy a site through : 'Ĭat $WP_CONFIG_TMPL | sed "s/site-db/ $DB_NAME/g " > $GIT_TMPLS_DIR/ $SITE_NAME/wp-config.phpĬhown -R git:git $GIT_TMPLS_DIR/ $SITE_NAME echo ' ' echo 'Site creation finished ' Steps ![]() ' echo "CREATE DATABASE $DB_NAME " | mysqlĬat $POST_HOOK_TMPL | sed "s/site-db/ $DB_NAME/g " | sed "s/site/ $SITE_NAME/g " > $SITE_GIT_DIR/hooks/post-updateĬhomod +x $SITE_GIT_DIR/hooks/post-updateĬhown -R git:git $SITE_GIT_DIR echo 'Creating wp-config template. ' $SITE_DIRĬhown -R git:apache $SITE_DIR echo 'Creating database. WP_CONFIG_TMPL=/root/templates/wp-config.phpĮcho 'Creating files for site: ' $SITE_NAME echo 'Creating ' $SITE_CONFĬat $SITE_TMPL | sed "s/site/ $SITE_NAME/g " > $SITE_CONF echo 'Enabling site configuration. POST_HOOK_TMPL=/root/templates/post-update This page was generated by GitHub Pages using the Architect theme by Jason Long.SITES_ENABLED_DIR=/etc/httpd/sites-enabled This application is licensed under GNU General Public License, Version 3.0 Download ![]() no commits, no checkouts, no file modifications)!ĭon't forget to add yourself to the AUTHORS file.Ĭore functionality is unit tested using shunit2. While running git-ftp, you have to take care, no one pushes or
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |