This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before Script | |
before_script: | |
- composer self-update | |
- composer install --prefer-dist > /dev/null | |
- cp .env.example .env | |
- php artisan key:generate | |
- php artisan migrate:refresh | |
# Services | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before Tests | |
before_script: | |
- bash ci/docker_setup.sh > /dev/null | |
- composer self-update | |
- composer install --prefer-dist > /dev/null | |
- cp .env.gitlab .env | |
- php artisan key:generate | |
# Services | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install tmux on Centos release 6.5 up | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# crontab -e | |
# 0 0 * * 1-5 /bin/sh /home/backup/back_all_site.sh 'daily' | |
# 1 0 * * 6 /bin/sh /home/backup/back_all_site.sh 'weekly' | |
# 2 0 1 * * /bin/sh /home/backup/back_all_site.sh 'monthly' | |
BACKUP_TIME=`date +%Y%m%d%H%M%S` | |
BACKUP_FILENAME="${BACKUP_TIME}" |