# update drupal
sudo drush -r /home/chiao/public_html/drupal ups
#Put the site into maintenance mode before updating using:
sudo drush -r /home/chiao/public_html/drupal sset system.maintenance_mode 1
sudo drush -r /home/chiao/public_html/drupal cr
#Execute the updates:
sudo drush -r /home/chiao/public_html/drupal up drupal
#Apply any required database and entity updates:
sudo drush -r /home/chiao/public_html/drupal updb
sudo drush -r /home/chiao/public_html/drupal entup
sudo drush -r /home/chiao/public_html/drupal sset system.maintenance_mode 0
sudo drush -r /home/chiao/public_html/drupal cr
Done!
2018年9月27日 星期四
Install drush with composer
Cf: https://www.drupal.org/docs/8/update/update-procedure-in-drupal-8
# Install composer using apt-get:
sudo apt-get install composer
# Install latest drush (e.g. 9.x) using composer (2018-4-4) (not recommanded!)
# composer global require drush/drush
# Or, just install drush 8 using composer (2018-4-4)
# because drush 9.x cannot use ups (recommanded)
composer global require drush/drush:~8
# create symbolic link
sudo ln -s /home/chiao/.composer/vendor/bin/drush /usr/local/bin
or
sudo ln -s /home/chiao/.config/composer/vendor/bin/drush /usr/local/bin
#cd ~/.config/composer
# make sure php-curl installed
sudo apt-get install php-curl -y
# Install composer using apt-get:
sudo apt-get install composer
# Install latest drush (e.g. 9.x) using composer (2018-4-4) (not recommanded!)
# composer global require drush/drush
# Or, just install drush 8 using composer (2018-4-4)
# because drush 9.x cannot use ups (recommanded)
composer global require drush/drush:~8
# create symbolic link
sudo ln -s /home/chiao/.composer/vendor/bin/drush /usr/local/bin
or
sudo ln -s /home/chiao/.config/composer/vendor/bin/drush /usr/local/bin
#cd ~/.config/composer
# make sure php-curl installed
sudo apt-get install php-curl -y
2018年9月25日 星期二
2018年9月14日 星期五
2018年9月6日 星期四
Create a new text file on desktop
cf: https://askubuntu.com/questions/936587/how-to-add-right-click-on-desktop-to-create-text-file-functionality-16-04-2-ub
Create a blank text file (you can create any type of file, not just text), e.g. my.txt, in
Create a blank text file (you can create any type of file, not just text), e.g. my.txt, in
~/模板 (~/Templates)
. Then in the right click menu under New document (on desktop) it will appear an item "my.txt".
訂閱:
意見 (Atom)
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://forums.raspberrypi.com/viewtopic.php?t=278033 For linux: First run the command: route -n It will show the metrics of the i...
-
cf: https://askubuntu.com/questions/1276111/error-upgrading-grub-efi-amd64-signed-special-device-old-ssd-does-not-exist sudo mv /var/cache...