A WordPress-based project for the Byline website.
- WordPress 6.0+
- PHP 7.4+
- MySQL 5.7+
- Web server (Apache/Nginx)
- Clone the repository
- Configure your local web server to point to the project directory
- Create a local database
- Copy
wp-config-sample.phptowp-config.phpand update database settings - Run WordPress installation
-
Create Application on Cloudways
- Log into your Cloudways account
- Create a new application
- Choose "Custom PHP" as the application type
- Select your preferred server and PHP version
-
Deploy from GitHub
- In your Cloudways application, go to "Deployment via Git"
- Connect your GitHub account
- Select the "Byline" repository
- Set the branch to
mainormaster - Click "Deploy"
-
Configure WordPress
- Update
wp-config.phpwith Cloudways database credentials - Set up your domain in Cloudways
- Complete WordPress installation
- Update
Update your wp-config.php with Cloudways database settings:
define('DB_NAME', 'your_cloudways_db_name');
define('DB_USER', 'your_cloudways_db_user');
define('DB_PASSWORD', 'your_cloudways_db_password');
define('DB_HOST', 'your_cloudways_db_host');For production, consider using environment variables for sensitive data:
define('DB_NAME', $_SERVER['DB_NAME']);
define('DB_USER', $_SERVER['DB_USER']);
define('DB_PASSWORD', $_SERVER['DB_PASSWORD']);
define('DB_HOST', $_SERVER['DB_HOST']);byline-wp/
├── wp-admin/ # WordPress admin files
├── wp-content/ # Themes, plugins, uploads
│ ├── plugins/ # Custom plugins
│ ├── themes/ # Custom themes
│ └── uploads/ # Media uploads (gitignored)
├── wp-includes/ # WordPress core files
├── .gitignore # Git ignore rules
├── README.md # This file
└── wp-config.php # WordPress configuration (gitignored)
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Test locally
- Commit changes:
git commit -m "Add feature description" - Push to GitHub:
git push origin feature/your-feature - Create a pull request
- Push to
mainbranch to trigger automatic deployment - Cloudways will automatically pull the latest changes
- Place custom themes in
wp-content/themes/ - Follow WordPress theme development standards
- Place custom plugins in
wp-content/plugins/ - Follow WordPress plugin development standards
wp-config.phpis excluded from version control for security- Uploads directory is excluded to prevent large files in repository
- Consider using environment variables for sensitive configuration
For deployment issues, refer to:
This project follows WordPress licensing terms.