Skip to content

Instantly share code, notes, and snippets.

@pb10005
Created September 25, 2021 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pb10005/9ccfcc2300bc5abc811c2d9a0e473937 to your computer and use it in GitHub Desktop.
Save pb10005/9ccfcc2300bc5abc811c2d9a0e473937 to your computer and use it in GitHub Desktop.
cindy-nextの開発環境
$script = <<SCRIPT
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
sudo npm install -g yarn
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
    rustup install nightly
  cargo install just
sudo apt install -y postgresql-12
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "generic/debian10"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.synced_folder "./volume", "/home/vagrant/app", create: true
config.vm.provision "shell", inline: $script, privileged: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment