Skip to content

Instantly share code, notes, and snippets.

@mrabbani
Last active November 4, 2020 02:10
Show Gist options
  • Save mrabbani/7f53ffc3992efd4a22ac985692837a5a to your computer and use it in GitHub Desktop.
Save mrabbani/7f53ffc3992efd4a22ac985692837a5a to your computer and use it in GitHub Desktop.
Server Deployment

Index

Envoy command not found

  • Install & permission

    composer global require laravel/envoy 
    chmod +x ~/.composer/vendor/bin/envoy
    
  • Create symlink or alias

    //Symlink 
    sudo ln -s ~/.composer/vendor/bin/envoy /usr/bin/envoy
    //Alias
    alias envoy="~/.composer/vendor/bin/envoy"
    

To learn more

Accessing Server

Let's assume you want to login to your server with ssh command like ssh user@mydomain.com which propt you to enter password. But you don't want to enter password every time during deployment. Actually you want to deploy without password. You can do that by following steps in your local PC :

  ssh-keygen //if you didn't create ssh key
  ssh-copy-id user@mydomain.com
  
  //Now you are able to login your server without password
 
  ssh user@mydomain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment