File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
appengine/standard/wordpress Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ gcloud sql databases create ${db_name?} --instance=${db_instance?}
4141
42428 . Create and deploy the App Engine app:
4343``` sh
44- app=[DIR WHERE YOU WANT TO CREATE YOUR APP]
44+ app=[FULL PATH TO DIR WHERE YOU WANT TO CREATE YOUR APP]
4545mkdir -p ${app?}
4646cd ${app?}
4747ln -s ${aewp?} aewp
@@ -70,6 +70,26 @@ WordPress site.
7070
7171Enjoy your WordPress app!
7272
73+ ## Installing themes
74+ It does not work to install themes from the WordPress admin UI because the php72 runtime
75+ does not include FTP. It's fairly easy to install them from the command line though:
76+
77+ 1 . Go to https://wordpress.org/themes in your browser and click a theme you'd like to install.
78+ 2 . Right-click the Download button and choose "Copy link address".
79+ 3 . In the terminal:
80+ ```
81+ url=[PASTE THE URL]
82+ cd ${app?}/wordpress/wp-content/themes
83+ name=$(basename ${url})
84+ curl ${url?} >${name?}
85+ unzip ${name?}
86+ cd ../../
87+ gcloud app deploy
88+ ```
89+ 4 . Go to the admin UI of your WordPress site.
90+ 5 . Click ` Appearance | Themes ` in the menu on the left.
91+ 6 . Click ` Activate ` or ` Live Preview ` on your new theme.
92+
7393## Updating
7494When a new version of WordPress becomes available, you can update your app to use it
7595like this:
@@ -79,7 +99,7 @@ aewp/update-wordpress
7999cd wordpress
80100gcloud app deploy
81101```
82- Updating from within the WordPress admin console will not work because the php72
102+ Updating from within the WordPress admin UI will not work because the php72
83103runtime has a mostly read-only file system.
84104
85105[ bash ] : https://www.gnu.org/software/bash/
You can’t perform that action at this time.
0 commit comments