See a list of composer configuration settings.
composer config --list -g
Check to see if you already set a github personal access token
| function ec2-ssh () { | |
| ssh -i ~/.ssh/$2 -l ubuntu $(aws ec2 describe-instances --filter Name=instance-id,Values=$1 | jq '.Reservations[0].Instances[0].PublicIpAddress' | tr -d '"') | |
| } |
| server{ | |
| server_name cfp.sitename.com; | |
| root /var/www/opencfp/web; | |
| listen 80; | |
| index index.php index.html index.htm; | |
| access_log /var/log/nginx/access.cfp.log; | |
| error_log /var/log/nginx/error.cfp.log; | |
| location / { |
| server{ | |
| server_name cfp.sitename.com; | |
| root /var/www/opencfp/web; | |
| access_log /var/log/nginx/access.cfp.log; | |
| error_log /var/log/nginx/error.cfp.log; | |
| listen 80; | |
| index index.php index.html index.htm; |
| # 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: |
| # config valid only for current version of Capistrano | |
| lock '3.4.0' | |
| set :application, "Your app name" # EDIT your app name | |
| set :repo_url, "https://github.com/laravel/laravel.git" # EDIT your git repository | |
| set :deploy_to, "/var/www/my-app" # EDIT folder where files should be deployed to | |
| set :keep_releases, 5 | |
| # set :linked_files, %w{.env} #EDIT uncomment this line once you have a .env file in :deploy_to/shared |
See a list of composer configuration settings.
composer config --list -g
Check to see if you already set a github personal access token
| #!/bin/bash | |
| filePath1="$1" | |
| filePath2="$2" | |
| if cmp -s "$1" "$2" | |
| then | |
| echo "match" | |
| else | |
| echo "different" |
| https://www.evernote.com/l/AAoEOtFGgThO94zN6ia6mpGHd_0fxzhrwtk | |
| #!/bin/sh | |
| echo 'updating composer' | |
| composer selfupdate | |
| echo 'updating home brew' | |
| brew update |