forked from Disroot/Website
Merge branch 'privacy_policy' of git.disroot.org:Disroot/Website into privacy_policy
This commit is contained in:
commit
4031ce72e9
3 changed files with 11 additions and 2 deletions
|
@ -62,12 +62,16 @@
|
|||
```
|
||||
git clone https://git.disroot.org/Disroot/grav-plugin-language-selector.git ~/Disroot/grav-plugin-language-selector
|
||||
```
|
||||
5. Add the local domain name for the hub to your host machine's `/etc/hosts` file.
|
||||
5. Clone Disroot-Privacy-Policy repo to Disroot folder
|
||||
```
|
||||
git clone https://git.disroot.org/Disroot/Disroot-Privacy-Policy.git ~/Disroot/Disroot-Privacy-Policy
|
||||
```
|
||||
6. Add the local domain name for the hub to your host machine's `/etc/hosts` file.
|
||||
|
||||
```
|
||||
echo "192.168.33.12 disroot.lan" >> /etc/hosts
|
||||
```
|
||||
6. Launch Vagrant to build the virtual machine (VM). This will take several minutes.
|
||||
7. Launch Vagrant to build the virtual machine (VM). This will take several minutes.
|
||||
```
|
||||
cd ~/Disroot/disroot-website/vagrant
|
||||
vagrant up disroot_lan
|
||||
|
|
1
vagrant/Vagrantfile
vendored
1
vagrant/Vagrantfile
vendored
|
@ -20,6 +20,7 @@ Vagrant.configure("2") do |config|
|
|||
disroot_lan.vm.synced_folder "../pages/", "/var/www/pages", owner: "www-data", group: "www-data"
|
||||
disroot_lan.vm.synced_folder "../../grav-theme-disroot", "/var/www/grav-theme-disroot", owner: "www-data", group: "www-data"
|
||||
disroot_lan.vm.synced_folder "../../grav-plugin-language-selector", "/var/www/grav-plugin-language-selector", owner: "www-data", group: "www-data"
|
||||
disroot_lan.vm.synced_folder "../../Disroot-Privacy-Policy/", "/var/www/pages/privacy_policy/_pp", owner: "www-data", group: "www-data"
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -99,6 +99,10 @@ sudo sed -i "s/127.0.0.1\tlocalhost/127.0.0.1\tlocalhost $WEB_NAME/" /etc/hosts
|
|||
sudo mount -o bind /var/www/pages "${WEB_ROOT}""${WEB_NAME}"/user/pages
|
||||
chown "${WWW_USER}":"${WWW_USER}" -R "${WEB_ROOT}""${WEB_NAME}"/user/pages
|
||||
|
||||
#Add Privacy Statement pages in GRAV
|
||||
sudo mount -o bind /var/www/pages/privacy_policy/_pp "${WEB_ROOT}""${WEB_NAME}"/user/pages/privacy_policy/_pp
|
||||
chown "${WWW_USER}":"${WWW_USER}" -R "${WEB_ROOT}""${WEB_NAME}"/user/pages/privacy_policy/_pp
|
||||
|
||||
#Add Disroot theme in GRAV
|
||||
sudo -u "${WWW_USER}" ln -s "${WEB_ROOT}"/grav-theme-disroot "${WEB_ROOT}""${WEB_NAME}"/user/themes/disroot
|
||||
|
||||
|
|
Loading…
Reference in a new issue