Saya tring untuk memperbarui menggunakan drush, dengan perintah drush up
, tetapi inti tidak memperbarui. dikatakan pada output drush:
Project drupal was updated successfully. Installed version is now 7.27.
tapi ternyata tidak! laporan status dengan jelas mengatakan versi ini masih 7.26. Juga, saya mencoba menjalankan drush lagi, dan pembaruan berhasil dari 26 hingga 27 setiap kali saya menjalankannya ...
MEMPERBARUI
Saya melakukan perintah ini:
drush up drupal -v
dan ini adalah hasilnya:
Initialized Drupal 7.26 root directory at /www/permalink.hashworld.co/docs
[notice]
Initialized Drupal site default at sites/default [notice]
Loading release_info engine. [notice]
Loading version_control engine. [notice]
Loading package_handler engine. [notice]
Executing: wget --version
/usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off /usr/share/php/drush/drush.php --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d [notice]
magic_quotes_runtime=Off -d magic_quotes_sybase=Off' --backend=2 --verbose --root=/www/permalink.hashworld.co/docs --uri=http://default pm-updatestatus drupal 2>&1
Name Installed Version Proposed version Message
Drupal 7.26 7.27 SECURITY UPDATE available
Update information last refreshed: Fri, 04/18/2014 - 20:06
Code updates will be made to drupal core.
WARNING: Updating core will discard any modifications made to Drupal core files, most noteworthy among these are .htaccess and robots.txt. If you have made any modifications to these files, please back them up before updating so that you can re-create your modifications in the updated version of the file.
Note: Updating core can potentially break your site. It is NOT recommended to update production sites without prior testing.
Do you really want to continue? (y/n): y
Executing: svn info /www/permalink.hashworld.co/docs/drupal-7.27
Executing: bzr root /www/permalink.hashworld.co/docs/drupal-7.27
Executing: wget --version
Executing: wget -q --timeout=30 -O /tmp/download_fileN0AtzR http://ftp.drupal.org/files/projects/drupal-7.27.tar.gz
Downloading drupal-7.27.tar.gz was successful. [notice]
Md5 checksum of drupal-7.27.tar.gz verified. [notice]
Mime type for /www/permalink.hashworld.co/docs/drupal-7.27.tar.gz is application/x-gzip [notice]
Executing: tar -C /www/permalink.hashworld.co/docs -xzf drupal-7.27.tar.gz
Executing: tar -tzf drupal-7.27.tar.gz
Project drupal was updated successfully. Installed version is now 7.27.
Backups were saved into the directory /home/ubuntu/drush-backups/permalink/20140421094219/drupal. [ok]
Command dispatch complete [notice]
/usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off /usr/share/php/drush/drush.php --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d [notice]
magic_quotes_runtime=Off -d magic_quotes_sybase=Off' --backend=2 --verbose --root=/www/permalink.hashworld.co/docs --uri=http://default updatedb 2>&1
Initialized Drupal 7.26 root directory at /www/permalink.hashworld.co/docs [notice]
Initialized Drupal site default at sites/default [notice]
No database updates required [success]
/usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d magic_quotes_sybase=Off /usr/share/php/drush/drush.php --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d [notice]
magic_quotes_runtime=Off -d magic_quotes_sybase=Off' --backend=2 --verbose --yes --root=/www/permalink.hashworld.co/docs --uri=http://default cache-clear all 2>&1
Initialized Drupal 7.26 root directory at /www/permalink.hashworld.co/docs [notice]
Initialized Drupal site default at sites/default [notice]
'all' cache was cleared. [success]
Command dispatch complete [notice]
Finished performing updates. [ok]
Command dispatch complete [notice]
Command dispatch complete
update.php
setelah memperbarui melalui drush?Jawaban:
Mungkin ada masalah dengan izin direktori root Drupal .. Coba jalankan sebagai sudo
Perintah di atas memperbarui semua modul dan inti yang diaktifkan di Drupal ...
Coba gunakan
yang mana hanya pembaruan inti .. Ini bekerja untuk saya .. Saya Diperbarui dari 7,22 ke yang terbaru 7,27 ..
Coba dengan -v untuk informasi lebih lanjut ..
Untuk debug gunakan perintah di bawah ini dengan opsi --debug
sumber
Perbarui drush ke versi stable terakhir dan coba lagi.
Jika tidak berhasil lakukan secara manual: (ini membosankan tetapi tidak sulit);
Info lebih lanjut
sumber