Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Create a database on server
- 2. Download Worpdress
- ```
- wp core download --allow-root
- ```
- 3. Configure Wordpress
- ```
- wp core config --dbname=[dbName] --dbuser=[dbUser] --dbpass=[dbPass] --dbhost=[dbHost] --allow-root
- ```
- 4. Install Wordpress
- ```
- wp core install --url=[siteUrl] --title=[siteTitle] --admin_user=[adminUser] --admin_password=[adminPass] --admin_email=[adminEmail] --allow-root
- ```
- 5. Change dir to theme folder `wp-content/themes` and clone theme from github
- ```
- git clone git@github.com:rocketsciencebv/[repo].git
- ```
- 6. Activate theme
- ```
- wp theme activate [themeName] --allow-root
- ```
- 7. Delete standard themes
- ```
- wp theme delete twentyfifteen twentysixteen twentyseventeen --allow-root
- ```
- 8. Delete standard plugins
- ```
- wp plugin delete akismet hello --allow-root
- ```
- 9. Install Plugins
- ```
- wp plugin install --activate wordpress-importer --allow-root
- git clone git@github.com:rocketsciencebv/advanced-custom-fields-pro.git ../../plugins/advanced-custom-fields-pro
- git clone git@github.com:rocketsciencebv/advanced-custom-fields-wpcli.git ../../plugins/advanced-custom-fields-wpcli
- wp plugin activate advanced-custom-fields-pro advanced-custom-fields-wpcli --allow-root
- ```
- wp user create --path=${wpdir} editor editor@example.com --user_pass=editor --role=editor
Add Comment
Please, Sign In to add comment