This file contains 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
#create a public key base on the link bellow | |
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 | |
#the local public key has to be added on bitbucket.com and the remote server | |
https://help.github.com/articles/generating-ssh-keys/ | |
#if you added a pass phrase to the key you need to add your public key to the remote server | |
http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/#toc_3 | |
#set up the public ssh to your account |
This file contains 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
#make a folder for your app | |
mkdir /var/www | |
mkdir /var/www/laravel | |
#nginx config for laravel app | |
server { | |
listen 80 default_server; | |
root /var/www/laravel/public/; | |
index index.php index.html index.htm; |
This file contains 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
# Download Files from remote to local | |
scp -r user@host:/path/to/remote/folder /path/to/local/folder | |
# MYSQL | |
#log to mysql cli | |
mysql -u {username}-p | |
#List all databases | |
SHOW DATABASES; |
NewerOlder