$ sudo docker run -w /app -v $(pwd):/app node npx create-react-app my-app
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
| # Change to the project directory | |
| cd /home/forge/domain.com | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin master |
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
| if [[ ! -d ~/.zplug ]];then | |
| git clone https://github.com/zplug/zplug ~/.zplug | |
| fi | |
| source ~/.zplug/init.zsh | |
| zplug "plugins/git", from:oh-my-zsh | |
| zplug "plugins/git", from:oh-my-zsh | |
| zplug "plugins/sudo", from:oh-my-zsh | |
| zplug "plugins/command-not-found", from:oh-my-zsh | |
| zplug "zsh-users/zsh-syntax-highlighting" | |
| zplug "zsh-users/zsh-history-substring-search" |
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
| const data = [ | |
| { id: 1, name: '1111', ref: 2 }, | |
| { id: 2, name: '222', ref: 3 }, | |
| { id: 3, name: '3333', ref: 0 } | |
| ]; | |
| const getOne = (_id) => data.find(item => item.id == _id) | |
| const render = (it) => { | |
| let text = [it.name] |
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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteRule ^(.*)$ public/$1 [L] | |
| RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] | |
| </IfModule> |
