Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy a private repository easily (without SSH) #91

Closed
rocksbrasil opened this issue Jun 28, 2019 · 0 comments
Closed

Deploy a private repository easily (without SSH) #91

rocksbrasil opened this issue Jun 28, 2019 · 0 comments

Comments

@rocksbrasil
Copy link

rocksbrasil commented Jun 28, 2019

Hello everyone, after a few tries, I have found an easy way to deploy your github applications without adding SSH keys, just adding the credentials of your Github account to the HTTPS address, and would like to share with the community, for example:

[GitHub] https://USERNAME:PASSWORD@github.com/username/repo-name.git

it will only be necessary to define in the project code, following example:

/**
 * The address of the remote Git repository that contains the code that's being
 * deployed.
 * If the repository is private, you'll need to use the SSH address.
 *
 * @var string
 */
define('REMOTE_REPOSITORY', 'https://USERNAME:PASSWORD@github.com/username/repo-name.git');

This method can also be used by repository collaborator accounts, making it easier for those who need to deploy the application to multiple servers without generating SSH keys.

@markomarkovic markomarkovic pinned this issue Jul 3, 2019
@markomarkovic markomarkovic unpinned this issue Oct 1, 2020
@markomarkovic markomarkovic pinned this issue Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant