Skip to content

Instantly share code, notes, and snippets.

@drakakisgeo
Created September 21, 2015 12:24
Show Gist options
  • Save drakakisgeo/393b7bdff9e1074679ff to your computer and use it in GitHub Desktop.
Save drakakisgeo/393b7bdff9e1074679ff to your computer and use it in GitHub Desktop.
My deployphp/deployer notes
1. Make sure the ssh public key of your development is added to the live server. This way you won't need a passowrd. Test this by connecting to it directly ssh user@liveserver
2. Login to live server by `ssh user@liveserver` and create a new ssh key by `ssh-keygen`. MAKE SURE NOT TO INSERT A PASSWORD.
3. Add this public key to your bitbucket or github account that your repository is stored.
4. Make sure that the deploy.php script connects to git without https, for example = set('repository', '[email protected]:gdrakakis/checkout.git');
5. Run dep deploy production -vvv to see exacty the running comands.
CPANEL users
---------------
If you can't connect to your live server with ssh, make sure that the user can connect to the server with SSH.
To do this go to "Manage Shell Access" of WHM, select the user and assign him "Normal Shell*"
@drakakisgeo
Copy link
Author

For Laravel, there must be some folders in "/Shared"

storage/logs/
storage/framework
storage/framework/views

You only need to create those once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment