Simple vagrant box for Drupal installation
- Check number of Drupal latest version https://www.drupal.org/8/download
- Update DRUPAL_VER at vagrant/script/3_install_drupal.sh before install
$ vagrant up
http://localhost:3000/core/install.php
$ cd ../project/modules/ $ git clone git@github.com:natapone/wbp_haha_module.git
$ cp -rf wbp_haha_module/export/related_module.zip . $ unzip related_module.zip
$ cd ../themes/ $ git clone git@github.com:natapone/wbp_haha_theme.git
http://localhost:3000/admin/appearance
- Bootstrap
http://localhost:3000/admin/modules
- Ha Ha Module
- Haha related modules config
http://localhost:3000/admin/config/haha myanmar funny video, myanmar tik tok funny, myanmar joke, funny dog, funny cat
http://localhost:3000/haha/init http://localhost:3000/haha/update http://localhost:3000/haha/publish http://localhost:3000/nonstop
- After everything pass
http://localhost:3000/admin/structure/block
- Content:
- Blocks sorted properly
- Latest shows only node/*
- Secondary: disable or remove
- Footer: disable or remove
http://localhost:3000/admin/config/system/site-information Default front page: /nonstop
#-----------------PRE PRODUCTION----------------------#
Generating a new SSH key and adding it to the ssh-agent https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
$ ssh-keygen -t rsa -b 4096 -C "natapone@gmail.com" $ vi ~/.ssh/id_rsa.pub Copy key and pass to Github https://github.com/settings/keys
$ cd ~ $ git clone git@github.com:natapone/Vagrant-drupal.git $ cd /root/Vagrant-drupal/vagrant/script
- MySQL password
- Drupal version
$ vi 2_install_lamp.sh $ vi 3_install_drupal
$ sudo bash 1_bootstrap.sh $ sudo bash 2_install_lamp.sh $ sudo bash 3_install_drupal.sh
Install Drupal http://128.199.246.222/
Disable public access $ sudo chmod 755 -R /var/www/html/project/sites/default/ $ sudo chmod 644 /var/www/html/project/sites/default/settings.php
Continue install theme and modules as normal!!!
#-----------------POST PRODUCTION----------------------#
http://128.199.246.222/admin/config/system/google-analytics
http://128.199.246.222/admin/config/system/google_tag
$ mysql -u devel -p -D drupal mysql> select count(h_id) from haha_content;
$ crontab -e 15 */4 * * * curl -I "http://localhost/haha/update" > /var/www/html/project/cron_haha_update.log 0 * * * * curl -I "http://localhost/haha/publish" > /var/www/html/project/cron_haha_publish.log $ crontab -l