Managing projects
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

install-discourse-plugin-for-events.md 1.1 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # How to Install a Discourse Plugin for Events
  2. ## 1. Create a new discourse installation for testing
  3. 1. Initialize a new discourse site:
  4. ```bash
  5. ds init discourse @forum1.flossk.org
  6. cd /var/ds/forum1.flossk.org/
  7. ```
  8. 2. Copy `settings.sh` from the original site, but change `DOMAIN` to the new one (`forum1.flossk.org`):
  9. ```bash
  10. cp ../forum.flossk.org/settings.sh .
  11. vim settings.sh
  12. ```
  13. 3. Make the container:
  14. ```bash
  15. cd /var/ds/forum1.flossk.org
  16. ds make
  17. ```
  18. (It may take a few minutes.)
  19. ## 2. Take a backup from the original site and restore it on the test site
  20. ```bash
  21. cd /var/ds/forum.flossk.org/
  22. ds backup
  23. ls backup/
  24. mkdir -p ../forum1.flossk.org/backup/
  25. cp backup/flossk-2020-07-10-171654-v20200710013237.tar.gz \
  26. ../forum1.flossk.org/backup/
  27. cd ../forum1.flossk.org/
  28. ds restore backup/flossk-2020-07-10-171654-v20200710013237.tar.gz
  29. ```
  30. **Note:** For some reason it does not work for the first time. Try it a second time:
  31. ```bash
  32. ds restore backup/flossk-2020-07-10-171654-v20200710013237.tar.gz
  33. ```
  34. Now we can open the test site https://forum1.flossk.org and login as admin.