Thursday, March 13, 2014

Application Copy from local to remote server

This is Application copy form local to remote serve. i written the step by step
follow the command and just easy to copy your code local to remote serve.

1. Copy from local to remote serve cmd,

scp -i zid.pem PlayGame.tar.gz root@ec2-34-107-155-182.compute-1.amazonaws.com:/root


2. Connect the server cmd

ssh -i zid.pem root@34.107.155.182


3. untar file cmd

tar xvfz PlayGame.tar.gz


1. chgrp apache /var/www/html/PlayGame/application/cache/
2. chmod 775 /var/www/html/PlayGame/application/cache/
3. semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/PlayGame/application/cache/'
4. restorecon -v '/var/www/html/PlayGame/application/cache/'
5. service httpd restart


find . -name ".git"
find . -name ".git" | xargs rm -rf


No comments:

Post a Comment