The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

63 líneas
2.3 KiB

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. # Bubble Vagrantfile
  6. # ==================
  7. # `vagrant up` will create a full Bubble development environment, and optionally start
  8. # a local launcher.
  9. #
  10. # ## Environment Variables
  11. #
  12. # ### LETSENCRYPT_EMAIL
  13. # If you specify the LETSENCRYPT_EMAIL environment variable, then `vagrant up` will also
  14. # start a Local Launcher (see docs/local-launcher.md) which is your starting point for
  15. # launching new Bubbles.
  16. #
  17. # ### BUBBLE_PORT
  18. # By default, Bubble will listen on port 8090.
  19. # If something else is already using that port on your computer, `vagrant up` will fail.
  20. # Set the `BUBBLE_PORT` environment variable to another port, and Bubble will listen on
  21. # that port instead.
  22. #
  23. # ### BUBBLE_GIT_TAG
  24. # By default, the Vagrant box will run the bleeding edge (`master` branch) of Bubble.
  25. # Set the `BUBBLE_GIT_TAG` environment variable to a git branch or tag that should be
  26. # checked out instead.
  27. #
  28. #
  29. Vagrant.configure("2") do |config|
  30. config.vm.box = "ubuntu/focal64"
  31. # You can access the launcher on port 8090 (or BUBBLE_PORT) but only on 127.0.0.1
  32. # If you want to allow outside access to port 8090 (listen on 0.0.0.0), use the version below
  33. config.vm.network "forwarded_port", guest: 8090, host: ENV['BUBBLE_PORT'] || 8090, host_ip: "127.0.0.1"
  34. # Anyone who can reach port 8090 on this system will be able to access the launcher
  35. # config.vm.network "forwarded_port", guest: 8090, host: ENV['BUBBLE_PORT'] || 8090
  36. config.vm.provision :shell do |s|
  37. s.env = {
  38. LETSENCRYPT_EMAIL: ENV['LETSENCRYPT_EMAIL'],
  39. GIT_TAG: ENV['BUBBLE_GIT_TAG'] || 'master'
  40. }
  41. s.inline = <<-SHELL
  42. apt-get update -y
  43. apt-get upgrade -y
  44. if [[ ! -d bubble ]] ; then
  45. git clone https://git.bubblev.org/bubblev/bubble.git
  46. fi
  47. cd bubble
  48. git fetch && git pull origin ${GIT_TAG}
  49. ./bin/first_time_ubuntu.sh
  50. ./bin/first_time_setup.sh
  51. if [[ -n "${LETSENCRYPT_EMAIL}" ]] ; then
  52. echo "export LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}" > bubble.env
  53. ./bin/run.sh bubble.env
  54. fi
  55. echo "we are in $(pwd) ok man??"
  56. # chown -R vagrant ./*
  57. SHELL
  58. end
  59. end