tebakaja commited on
Commit
67793ca
·
1 Parent(s): 7428bdb

Deploy WordPress on HuggingFace

Browse files
Files changed (3) hide show
  1. .gitignore +1 -1
  2. Dockerfile +1 -1
  3. wp-config-sample.php → wp-config.php +13 -13
.gitignore CHANGED
@@ -1 +1 @@
1
- credentials
 
1
+ credentials.txt
Dockerfile CHANGED
@@ -6,5 +6,5 @@ COPY . .
6
 
7
  RUN docker-php-ext-install mysqli
8
 
9
- CMD ["php", "-S", "0.0.0.0:7860"]
10
 
 
6
 
7
  RUN docker-php-ext-install mysqli
8
 
9
+ CMD ["php", "-S", "0.0.0.0:7860", "-t", "."]
10
 
wp-config-sample.php → wp-config.php RENAMED
@@ -20,19 +20,19 @@
20
 
21
  // ** Database settings - You can get this info from your web host ** //
22
  /** The name of the database for WordPress */
23
- define( 'DB_NAME', 'database_name_here' );
24
 
25
  /** Database username */
26
- define( 'DB_USER', 'username_here' );
27
 
28
  /** Database password */
29
- define( 'DB_PASSWORD', 'password_here' );
30
 
31
  /** Database hostname */
32
- define( 'DB_HOST', 'localhost' );
33
 
34
  /** Database charset to use in creating database tables. */
35
- define( 'DB_CHARSET', 'utf8' );
36
 
37
  /** The database collate type. Don't change this if in doubt. */
38
  define( 'DB_COLLATE', '' );
@@ -48,14 +48,14 @@ define( 'DB_COLLATE', '' );
48
  *
49
  * @since 2.6.0
50
  */
51
- define( 'AUTH_KEY', 'put your unique phrase here' );
52
- define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
53
- define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
54
- define( 'NONCE_KEY', 'put your unique phrase here' );
55
- define( 'AUTH_SALT', 'put your unique phrase here' );
56
- define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
57
- define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
58
- define( 'NONCE_SALT', 'put your unique phrase here' );
59
 
60
  /**#@-*/
61
 
 
20
 
21
  // ** Database settings - You can get this info from your web host ** //
22
  /** The name of the database for WordPress */
23
+ define( 'DB_NAME', getenv('DB_NAME'));
24
 
25
  /** Database username */
26
+ define( 'DB_USER', getenv('DB_USER'));
27
 
28
  /** Database password */
29
+ define( 'DB_PASSWORD', getenv('DB_PASSWORD'));
30
 
31
  /** Database hostname */
32
+ define( 'DB_HOST', getenv('DB_HOST'));
33
 
34
  /** Database charset to use in creating database tables. */
35
+ define( 'DB_CHARSET', 'utf8mb4' );
36
 
37
  /** The database collate type. Don't change this if in doubt. */
38
  define( 'DB_COLLATE', '' );
 
48
  *
49
  * @since 2.6.0
50
  */
51
+ define( 'AUTH_KEY', getenv('AUTH_KEY'));
52
+ define( 'SECURE_AUTH_KEY', getenv('SECURE_AUTH_KEY'));
53
+ define( 'LOGGED_IN_KEY', getenv('LOGGED_IN_KEY'));
54
+ define( 'NONCE_KEY', getenv('NONCE_KEY'));
55
+ define( 'AUTH_SALT', getenv('AUTH_SALT'));
56
+ define( 'SECURE_AUTH_SALT', getenv('SECURE_AUTH_SALT'));
57
+ define( 'LOGGED_IN_SALT', getenv('LOGGED_IN_SALT'));
58
+ define( 'NONCE_SALT', getenv('NONCE_SALT'));
59
 
60
  /**#@-*/
61