- git clone https://github.com/guptahemant/insta-clone.git
- " composer install " will download all require files and modules.
- install and do all site setup through browser.
- "drush updb" will install all recent updates if their are some.
- "drush cim " will import the configuration.
- look at Frontend section for frontend setup.
- drush si --existing-config
- In your feature branch check all current changes work is been commited.
- do drush config export and add commit it.
- " drush cex " - to export configuration .
- After that switch to main branch to do next step.
In your main branch perform "git pull".
- "git pull" - allows you to take fresh pull in your directory.
- change your branch to your feature branch and perform :
- "composer install " - will install all modules and files required.
- " drush updb " - this command will update your database.
- " drush cim " - this command will import all the configuaration to the site.
- look at Frontend section for frontend setup.
- check that your main branch contains new code.
- do configuraton export - "drush cex". 3.commit all code and changes with the new configuration exported to your feature branch.
- push all changes to feature branch.
- create a pull request and ask fellow teammates to review the changes.
- switch your directory to web/themes/custom/instagram and run " npm install ".
- npm install - will download all require node modules to perform further task on sites. eg: gulp , sass
- run " gulp sass " this command will compile the sass file in the css and will create a css file which contains all the css we needed for the site. ("Do Not forget to clear the cache if any of the css is missing to load - 'drush cr' ").
- This modules helps to import/export content of our site.
- To Export new content on the site
EXPORT NODE : " drush dcer node --folder=modules/custom/demo_con/content "
EXPORT MEDIA : " drush dcer media --folder=modules/custom/demo_con/content "
EXPORT FILE : " drush dcer file --folder=modules/custom/demo_con/content "
EXPORT BLOCK : "drush dcer block_content --folder=modules/custom/demo_con/content "
EXPORT MENU : " drush dcer menu_link_content --folder=modules/custom/demo_con/content "
EXPORT TAXONOMY : " drush dcer taxonomy_term --folder=modules/custom/demo_con/content "
-
This will add all the needed content in your custom module content folder.
-
To Import new content on the site
1.simply install the demo_con module and all the content will be imported.
2.if problem arises with similar key delete all previous content from the database table.