Skip to content

Instantly share code, notes, and snippets.

View gentw's full-sized avatar
🎯
Focusing

Gentian (Gex) Nuka gentw

🎯
Focusing
View GitHub Profile
@gentw
gentw / pipeline-of-installing-and-testing-laravel-application
Created October 17, 2021 03:16 — forked from CarterZhou/pipeline-of-installing-and-testing-laravel-application
This is a sample script of installing and testing a Laravel application using Jenkins pipeline
node {
stage('download') {
git branch: 'master', url: 'github/url/to/your/project'
}
stage('install') {
sh 'composer install'
}
stage('init') {
sh 'cp .env.example .env'
sh 'php artisan key:generate'
@gentw
gentw / nginx.conf
Created September 6, 2020 12:04 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which