Last active
June 30, 2020 09:20
-
-
Save mgmgpyaesonewin/7e76767499f36db5363f05e93f3d147f to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
| - echo "Before script" | |
| - cd /var/www/html/{your-project-name} #your project path | |
| building: | |
| stage: build | |
| script: | |
| - git reset --hard | |
| - git pull origin develop | |
| - composer install | |
| - cp .env.example .env | |
| - php artisan key:generate | |
| - php artisan migrate --seed | |
| - php artisan cache:clear | |
| - php artisan config:clear | |
| - php artisan storage:link | |
| - sudo chown -R deployer:www-data /var/www/html/{your-project-name}/ | |
| - find /var/www/html/{your-project-name} -type f -exec chmod 664 {} \; | |
| - find /var/www/html/{your-project-name} -type d -exec chmod 775 {} \; | |
| - chgrp -R www-data storage bootstrap/cache | |
| - chmod -R ug+rwx storage bootstrap/cache | |
| testing: | |
| stage: test | |
| script: | |
| - php ./vendor/bin/phpunit | |
| deploying: | |
| stage: deploy | |
| script: | |
| - echo "Deployed" | |
| - php artisan queue:restart #if you use queue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment