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.

42 lines
1.2 KiB

  1. These install instructions are tested on a plain Ubuntu 22 or Debian 11 Server installation.
  2. You either need to [install a modern nodejs version](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)
  3. or replace the `openstreetbrowser.min.js` with `openstreetbrowser.js` in `index.html`.
  4. ```sh
  5. sudo apt install apache2 libapache2-mod-php curl git php-cli composer nodejs npm php-curl php-yaml
  6. sudo chmod 777 /var/www/html
  7. cd /var/www/html
  8. git clone https://github.com/plepe/openstreetbrowser.git
  9. cd openstreetbrowser
  10. npm install
  11. composer install
  12. git submodule update --init
  13. cp conf.php-dist conf.php
  14. nano conf.php
  15. mkdir data
  16. bin/download_dependencies
  17. ```
  18. For improved performance you should also run:
  19. ```sh
  20. modulekit/build_cache
  21. ```
  22. Have fun on http://localhost/openstreetbrowser which is now served via apache from php!
  23. # Debugging
  24. For debugging add the following line to conf.php:
  25. ```php
  26. $modulekit_nocache = true;
  27. ```
  28. And then run:
  29. ```sh
  30. npm run watch
  31. ```
  32. This is very similar to `npm run build`,
  33. but watches JavaScript files for changes and updates the dist/openstreetbrowser.js file automatically.
  34. It also adds debugging information to the final JavaScript file.