-
Notifications
You must be signed in to change notification settings - Fork 0
Conventions
guillermo edited this page Sep 14, 2010
·
3 revisions
- Don’t use sudo. If you need super user privileges to deploy an app, you are doing something wrong.
- The deploy system will have the following directories:
/current # Symlink to /releases/current_release /releases/ # All the releases of the app /shared # Data shared between releases. /shared/repo # A bare repo clone of your remote repo /shared/scaffold # Files shared between releases /shared/scaffold/tmp # tmp dir shared /shared/scaffold/log # log dir shared /shared/tmp # Symlink to /shared/scaffold/tmp /shared/log # Symlink to /shared/scaffold/log
- See Shared dir to know more about shared directory.
- Use ssh keys to access the server from your machine. Ensure you can access the host just by typing:
ssh host
- Use ssh keys to access the repo from your server. In your server you must can clone your repo just by typing
git clone ssh://github.com/username/my_repo.git
- Configure your .ssh/config to access your server easily.