What can I do to Deploy PHP Project Via GIT SVN

Deploy PHP Project via GIT/SVN

I can host any public or the private PHP project at CloudJiffy using the GIT or SVN version control system. It will be properly deployed to the CloudJiffy Cloud with all the required submodules and dependencies, exported from the remote repository.
To do this follow the given instruction:

1. Click the Add project button for the application server in the environment.


2. In the Add Project dialog box, choose the version control system (Git or SVN) and fill in all required fields:
  • for Git

    • URL to the project (http, https, git orftp link)

    • Branch of the project

    • Path (environment context name of project will be deployed to)

  • for SVN

    • URL to the project (http, https or svn link)

    • Login and Password of the repository (if this is required)

    • Path (environment context name of the project will be deployed to)

                        

                   

3. In case the Git repository I would like to access is private, put a tick to the Use authenticationcheckbox. I’ll see an additional section expanded, where I can enter the authentication data.

Firstly, choose the Access type that is going to use for connecting to the remote repository (Password or SSH key). Depending on the chosen option, fill in the following fields:
  • enter the Git account credentials (Login and Password) for the Password access type

  • type the Git account Login and choose the appropriate private SSH key from the Select key drop-down list for the SSH key access type (more details on SSH authorization for GIT see here

                  
                
 
Also, I can configure some additional options here:
  • Ticking the Check and auto-deploy updates checkbox will enable an automatic periodic re-deployment of the project from the repository, which is only performed if the repository contains new code changes. Use the Check every (min) option to define the required frequency of the project’s updates.

  • The Checkout now option (ticked by default) is used to indicate whether I’d like to deploy the project just after its addition or to do this later. If this option is disabled, the repository’s configurations will be saved for a further deployment, which can be initiated by the auto-deploy feature (if it is enabled) or by selecting the Update from the GIT button next to the added project.

  • The active by default Auto resolve conflict option represents an analog of the git reset –hard command. It is used to prevent the occurrence of merge conflicts while a further project update, which can take place if the same file was modified in both remote repository and the project, hosted at CloudJiffy Cloud. If such an issue arises, this contradictory file will be updated according to its repository version (which is considered as the correct one), discarding the locally made changes.

    Note: Please DO NOT disable this option if I don’t know exactly what I am doing.

  • Finally, select Add at the bottom of the frame.

After the deployment process is finished, click the Open in browser button next to the required context in order to display the app in a new browser tab.
 


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 32252