deployer

 

 

 

 cat /etc/redhat-release     CentOSの バージョン
 ss -an | grep 22 

 ss -an | grep LISTEN

wget http://deployer.org/deployer.phar
mv deployer.phar /usr/local/bin/dep

chmod +x /usr/local/bin/dep

php deployer.phar deploy -vvv production

/root/.ssh/id-rsa  必ずないことを確認

ssh-keygen -t rsa -C "hayase@rooking.co.jp"

ls -la ~/.ssh/
cat ~/.ssh/id_rsa.pub

vim /etc/httpd/vhosts/localhost.com.conf

 

<VirtualHost *:80>
DocumentRoot "/var/www/html/hogehoge/current/public"
ServerName hogehoge.com
<Directory "/var/www/html/hogehoge/current/public">
Options Indexes FollowSymLinks
AllowOverride All
Deny from none
</Directory>
</VirtualHost>

 

vim /etc/httpd/conf/httpd.conf

  Include vhosts/*.conf

apachectl configtest

  ServerName 
ls -la
apachectl configtest

apachectl restart

 

211 cd shared/
212 ls -la
213 cd storage/

215 mkdir framework
216 mkdir logs
217 mkdir framework/cache
218 mkdir framework/sessions
219 mkdir framework/views

chmod 777 bootstrap/ -R

ln -sfn /var/www/html/hogehoge/releases/20160125172650 current

元に戻す

 

dep deploy -vvv production