The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Bubble Developer Tasks
  2. ======================
  3. How to update the codebase, how to run the API server, how to reset the database.
  4. ## Updating the Code
  5. You can use normal git tools just fine with Bubble. Be aware that the bubble git
  6. repository makes extensive use of git submodules. So we provide some tools to
  7. make simple things simple. Everything is still git, there is no magic here.
  8. If you want to grab the latest code and ensure that all git submodules are properly
  9. in sync with the main repository:
  10. * First, ensure that you have no locally modified files (or `git stash` your changes)
  11. * Then run:
  12. ```shell script
  13. ./bin/git_update_bubble.sh
  14. ```
  15. This will update and rebuild all submodules, and the main bubble jar file.
  16. ## Building
  17. If you've changed files in `bubble-server/src/`, and you want to see those changes live,
  18. you'll need to rebuild:
  19. ```shell script
  20. bbuild
  21. ```
  22. ## Rebuilding Utilities
  23. If you change source files in one of the submodules under `utils`, you'll need to
  24. rebuild (and `mvn install`) those submodules, **and then** run `bbuild` to incorporate
  25. the changed libraries into the Bubble jar.
  26. ## Rebuilding the Web Site
  27. If you change files in `bubble-web`, you don't need to run a full `bbuild`.
  28. Instead you can run the much faster `webpack`.
  29. Run this from the `bubble-web` directory:
  30. ```shell script
  31. rm -f ./dist/* && webpack
  32. ```
  33. This will remove all previous site files and have webpack regenerate the HTML/CSS/JS for the
  34. Bubble web UI.
  35. If you look in `${HOME}/.bubble.env`, you'll see that the `BUBBLE_ASSETS_DIR` variable points
  36. to `${HOME}/bubble/bubble-web/dist`. Thus, when you run `webpack` to update the files in `dist`,
  37. the "live" site is updated.
  38. ## Running the API server
  39. To start the Bubble server:
  40. ```shell script
  41. ./bin/run.sh
  42. ```
  43. This will run the server in the foreground. Hit Control-C to stop it.
  44. ## Reset everything
  45. If you want to "start over", run:
  46. ```shell script
  47. ./bin/reset_bubble_full
  48. ```
  49. This will remove local files stored by Bubble, and drop the bubble database.
  50. If you run `./bin/run.sh` again, it will be like running it for the first time.
  51. ## Other tools
  52. There are many other tools in the `bin` directory.
  53. Most tools accept a `-h` / `--help` option and will print usage information.