Skip to content

Instantly share code, notes, and snippets.

@pb10005
Created Sep 25, 2021
Embed
What would you like to do?
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