You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
941 B

  1. These install instructions assume a plain Ubuntu 22.04 server installation.
  2. ```sh
  3. sudo apt install apache2 libapache2-mod-php curl git php-cli composer nodejs npm php-curl php-yaml
  4. sudo chmod 777 /var/www/html
  5. cd /var/www/html
  6. git clone https://github.com/plepe/openstreetbrowser.git
  7. cd openstreetbrowser
  8. npm install
  9. composer install
  10. git submodule update --init
  11. cp conf.php-dist conf.php
  12. nano conf.php
  13. mkdir data
  14. bin/download_dependencies
  15. ```
  16. For improved performance you should also run:
  17. ```sh
  18. modulekit/build_cache
  19. ```
  20. Browse to http://localhost/openstreetbrowser
  21. Have fun!
  22. # Debugging
  23. For debugging you should add the following line to conf.php:
  24. ```php
  25. $modulekit_nocache = true;
  26. ```
  27. Also you should run:
  28. ```sh
  29. npm run watch
  30. ```
  31. This is very similar to `npm run build`, but watches JavaScript files for
  32. changes and will update the dist/openstreetbrowser.js file. Also it will add
  33. debugging information to the final JavaScript file.