The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
4 anos atrás
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 web-build.
  29. Run this from the `bubble-web` directory:
  30. ```shell script
  31. rm -f ./dist/* && npm run build
  32. ```
  33. This will remove all previous site files and have npm regenerate the HTML/CSS/JS for the
  34. Bubble web UI.
  35. If you're using the [Bubble Vagrant Setup](dev_vagrant.md), look in `${HOME}/.bubble.env` and you'll see
  36. that the `BUBBLE_ASSETS_DIR` variable points to `${HOME}/bubble/bubble-web/dist`.
  37. Thus, when you run `npm run build` to update the files in `dist`, 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.