| @@ -44,4 +44,59 @@ ds restore backup/flossk-2020-07-10-171654-v20200710013237.tar.gz | |||||
| ds restore backup/flossk-2020-07-10-171654-v20200710013237.tar.gz | ds restore backup/flossk-2020-07-10-171654-v20200710013237.tar.gz | ||||
| ``` | ``` | ||||
| Now we can open the test site https://forum1.flossk.org and login as admin. | |||||
| Now we can open the test site https://forum1.flossk.org and login as admin. | |||||
| ## 3. Install the plugin on the test site | |||||
| Instructions on: https://meta.discourse.org/t/discourse-event/149964 | |||||
| 1. Add `git clone https://github.com/discourse/discourse-calendar.git` on the hooks section: | |||||
| ```bash | |||||
| cd /var/ds/forum1.flossk.org/ | |||||
| cd discourse_docker/ | |||||
| ls containers/ | |||||
| vim containers/forum.flossk.org.yml | |||||
| ``` | |||||
| It should look like this: | |||||
| ``` | |||||
| ## Plugins go here | |||||
| ## see https://meta.discourse.org/t/19157 for details | |||||
| hooks: | |||||
| after_code: | |||||
| - exec: | |||||
| cd: $home/plugins | |||||
| cmd: | |||||
| - git clone https://github.com/discourse/docker_manager.git | |||||
| - git clone https://github.com/discourse/discourse-calendar.git | |||||
| ``` | |||||
| 2. Rebuild the discourse container: | |||||
| ```bash | |||||
| cd /var/ds/forum1.flossk.org/ | |||||
| cd discourse_docker/ | |||||
| ls containers/ | |||||
| ./launcher rebuild forum1.flossk.org | |||||
| ``` | |||||
| 3. Login as admin and enable the settings `calendar_enabled` and `discourse_post_event_enabled`. | |||||
| 4. Try to post a new topic, then click on the gear icon and create an event | |||||
| ## 4. Clean up the test site | |||||
| After testing is done, clean up the test site: | |||||
| ```bash | |||||
| cd /var/ds/forum1.flossk.org/ | |||||
| ds remove | |||||
| cd .. | |||||
| rm -rf forum1.flossk.org/ | |||||
| ``` | |||||
| ## 5. Install the plugin on the real site | |||||
| Follow the steps on the section above, as described on: https://meta.discourse.org/t/discourse-event/149964 | |||||