- 抜粋元:gitのブランチの名前の付け方
- master 現在の製品バージョン。
- develop 次回リリースの開発用。
| <VirtualHost *:443> | |
| DocumentRoot /var/www/html/hogehoge/cakephp/ | |
| ServerName pre.kaigo-sodanshitsu.jp | |
| Setenv HTTPS ON | |
| </VirtualHost> | |
| Alias /biz "/var/www/html/hogehoge-biz/cakephp/" | |
| <Directory /hogehoge-biz> | |
| Options FollowSymLinks Includes Multiviews SymLinksIfOwnerMatch | |
| AllowOverride All |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteBase /biz | |
| RewriteRule ^$ app/webroot/ [L] | |
| RewriteRule (.*) app/webroot/$1 [L] | |
| </IfModule> |
| grant all on hoge_db.* to 'hoge_user'@'localhost' identified by 'hoge_pass'; |
| #vi起動時に「E437: terminal capability "cm" required」というエラーが表示される時 | |
| #.bashrcに以下を記述する | |
| export TERM=vt100 |
| # 別のブランチの内容をマージする | |
| git merge <branch> |
| # SCPコマンド リモートからディレクトリごとダウンロードする | |
| scp -P 22 -i ~/.ssh/xxx.pem -r username@192.168.0.1:/var/www/html/xxx ~/tmp/ |
| #カレントディレクトリ以下の30日以前のファイルを削除する | |
| find . -name "*.txt" -type f -daystart -mtime +30 | xargs rm -f |
| #!/bin/bash | |
| # | |
| # 実行ディレクトリ以下にtestディレクトリを作成しその下に日付ごとのファイルを作成する | |
| # | |
| mkdir ./test | |
| COUNT=0 | |
| #10日前までのファイルを作成する | |
| while [ $COUNT -lt 10 ]; do |