Showing posts with label drush cex. Show all posts
Showing posts with label drush cex. Show all posts

Friday 18 June 2021

How to add, commit, push files and database changes in git process?

We are going to explain not only famous git commands but also will discuss very useful Drush command for upload config(database) changes on a branch.

Follow these steps as given for upload files and database(config) changes on the branch.

1. drush cex => This command is used to upload a database(config) changes on the branch.

2. git status => To check the changes in files and database(config).  

3. git add => This command is used to add your changes on a branch, here you have to git add \<changes file path or config changes path>

OR

3. git add --all => This command is used to add all edited file changes at the same time.

4. git commit => This command is used to commit the added changes on branch by- [git commit -m "type message for commit here"] 

5. git push => This command is used to push all commit changes on the current branch.


OR 


If git operations are difficult for you then follow these given steps.

1. drush cex => This command is required first for upload database(config) changes on the branch.

2. Then use "Git desktop" software for all above git operations on the branch by great GUI. 

download link: https://desktop.github.com/


Note: If have any suggestions or issue regarding 'How to add, commit, push files and database changes in git process?' then you can ask by comments. 

Monday 14 June 2021

Create and move to New branch in Git.

 We are going to explain with some steps..

Git Bash process..

1. 'git checkout' // from current branch.

2. 'git checkout postlaunch_qa'  //You can rename underline area, from where you get the branch data.

3. git pull

Cmd process..

  • mysql -u drupal -p cvent < dev-cvent.sql // Run the fresh database here. (dev-cvent.sql this will be on root)  [optional - not every time required]

  • drush cr  //for clear cache

  • drush cim  //for config import changes.

4. 'git branch --all'  // for get all branches. (optional)

5. 'git branch <new branch name>' // for create new branch for new work.

6. 'git checkout <new branch name>' //for checkout that branch

After this process For login/reset password:

drush uli  // run this command and will return  kind of url:

'/en/cms/reset/1/1627312926/saMxys3WxEQ2I8DowhnRIhEYbxNdkc3yVuhwj9DQ33c/login'

put this on url website url and it will redirect to reset password for login.

Note: If have any suggestions or issue regarding 'Create and move to New branch in Git.' then you can ask by comments. 

How to resolve max execution time error in drupal ?

When you found error regarding 'max_execution_time' exceed, then you can follow steps for resolve this error: Steps:   You can put t...