Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Deploy WordPress on HuggingFace
Browse files Browse the repository at this point in the history
  • Loading branch information
belajarqywok committed Sep 26, 2024
1 parent 7428bdb commit 67793ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
credentials
credentials.txt
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ COPY . .

RUN docker-php-ext-install mysqli

CMD ["php", "-S", "0.0.0.0:7860"]
CMD ["php", "-S", "0.0.0.0:7860", "-t", "."]

26 changes: 13 additions & 13 deletions wp-config-sample.php → wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@

// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
define( 'DB_NAME', getenv('DB_NAME'));

/** Database username */
define( 'DB_USER', 'username_here' );
define( 'DB_USER', getenv('DB_USER'));

/** Database password */
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_PASSWORD', getenv('DB_PASSWORD'));

/** Database hostname */
define( 'DB_HOST', 'localhost' );
define( 'DB_HOST', getenv('DB_HOST'));

/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );
define( 'DB_CHARSET', 'utf8mb4' );

/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );
Expand All @@ -48,14 +48,14 @@
*
* @since 2.6.0
*/
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
define( 'AUTH_KEY', getenv('AUTH_KEY'));
define( 'SECURE_AUTH_KEY', getenv('SECURE_AUTH_KEY'));
define( 'LOGGED_IN_KEY', getenv('LOGGED_IN_KEY'));
define( 'NONCE_KEY', getenv('NONCE_KEY'));
define( 'AUTH_SALT', getenv('AUTH_SALT'));
define( 'SECURE_AUTH_SALT', getenv('SECURE_AUTH_SALT'));
define( 'LOGGED_IN_SALT', getenv('LOGGED_IN_SALT'));
define( 'NONCE_SALT', getenv('NONCE_SALT'));

/**#@-*/

Expand Down

0 comments on commit 67793ca

Please sign in to comment.