Skip to content

Instantly share code, notes, and snippets.

@avin
Last active September 7, 2015 17:54
Show Gist options
  • Select an option

  • Save avin/504d0397bfdc557a74cd to your computer and use it in GitHub Desktop.

Select an option

Save avin/504d0397bfdc557a74cd to your computer and use it in GitHub Desktop.
My vagrant+laravel configuration under windows
###### LOCAL HOST ######
# install laravel on local computer
composer create-project laravel/laravel --prefer-dist
cd ./laravel
composer require laravel/homestead --dev
vendor\bin\homestead make
# start vagrant and enter
vagrant up
vagrant enter
###### VAGRANT HOST ######
# Update nodejs
curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install --yes nodejs
sudo npm install -g npm@latest # or try npm@beta
# Create blank .npmignore in source folder for skip usage of .gitignore
touch .npmignore
# fake node_modules in project folder
mkdir ./node_modules
mkdir ../laravel_node_modules
sudo mount --bind ../laravel_node_modules/ ./node_modules/
# install zsh and utils
sudo apt-get install zsh mc screen
cd ~
git clone https://github.com/avin/dotfiles.git
cd ./dotfiles
./install.sh
chsh -s /bin/zsh
# use vim default
export VISUAL=vim
export EDITOR="$VISUAL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment