Last active
December 21, 2016 13:28
-
-
Save inventionate/11792116e84b376b9ea6 to your computer and use it in GitHub Desktop.
Homestead Extensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# If you would like to do some extra provisioning you may | |
# add any commands you wish to this file and they will | |
# be run after the Homestead machine is provisioned. | |
# PHP Extensions Gist | |
curl -s https://gist.githubusercontent.com/inventionate/11792116e84b376b9ea6/raw/3cd163c68df2c6bde4224da7f5e57b39191f47b9/extensions.sh | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ..="cd .." | |
alias ...="cd ../.." | |
alias h='cd ~' | |
alias c='clear' | |
function serve() { | |
if [[ "$1" && "$2" ]] | |
then | |
sudo dos2unix /vagrant/scripts/serve.sh | |
sudo bash /vagrant/scripts/serve.sh "$1" "$2" | |
else | |
echo "Error: missing required parameters." | |
echo "Usage: " | |
echo " serve domain path" | |
fi | |
} | |
export http_proxy=http://proxy.ph-karlsruhe.de:3128 | |
export https_proxy=http://proxy.ph-karlsruhe.de:3128 | |
export HTTP_PROXY=http://proxy.ph-karlsruhe.de:3128 | |
export HTTPS_PROXY=http://proxy.ph-karlsruhe.de:3128 | |
export FTP_PROXY=http://proxy.ph-karlsruhe.de:3128 | |
export RSYNC_PROXY=proxy.ph-karlsruhe.de:3128 | |
alias art='php artisan' | |
alias syn='cd Inventionate/Synthesise' | |
alias codecept='vendor/bin/codecept' | |
alias test='vendor/bin/codecept run' | |
alias doc='vendor/bin/phpdoc -c phpdoc.dist.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upadte | |
sudo apt-get update | |
# PhantomJS | |
sudo npm install -g phantomjs-prebuilt | |
# Gulp notify fix | |
# sudo apt-add-repository ppa:izx/askubuntu | |
# sudo apt-get update | |
# sudo apt-get install libnotify-bin | |
# Git config | |
git config --global user.email "[email protected]" | |
git config --global user.name "Fabian Mundt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
ip: "192.168.10.10" | |
memory: 2048 | |
cpus: 1 | |
authorize: ~/.ssh/id_rsa.pub | |
keys: | |
- ~/.ssh/id_rsa | |
folders: | |
- map: ~/Matrix/Inventionate | |
to: /home/vagrant/Inventionate | |
sites: | |
- map: synthesise.local | |
to: /home/vagrant/Inventionate/Synthesise/public | |
databases: | |
- homestead | |
variables: | |
- key: APP_ENV | |
value: local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VAGRANTFILE_API_VERSION = "2" | |
path = "#{File.dirname(__FILE__)}" | |
require 'yaml' | |
require path + '/scripts/homestead.rb' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
Homestead.configure(config, YAML::load(File.read(path + '/Homestead.yaml'))) | |
# Proxy settings | |
if Vagrant.has_plugin?("vagrant-proxyconf") | |
config.proxy.http = "http://proxy.ph-karlsruhe.de:3128/" | |
config.proxy.https = "http://proxy.ph-karlsruhe.de:3128/" | |
config.proxy.ftp = "http://proxy.ph-karlsruhe.de:3128/" | |
config.proxy.no_proxy = "localhost,127.0.0.1,.example.com, *.local" | |
end | |
# LDAP and Livereload extensions | |
config.vm.provision :shell do |shell| | |
shell.inline = "curl -s https://gist.githubusercontent.com/inventionate/11792116e84b376b9ea6/raw/3cd163c68df2c6bde4224da7f5e57b39191f47b9/extensions.sh | sh" | |
end | |
# Configure Livereload-port forwarding to the box | |
config.vm.network "forwarded_port", guest: 35729, host: 35729 | |
# Set up SSH agent forwarding | |
config.ssh.forward_agent = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vagrantfile muss direkt in der Homestead Repo modifiziert werden (Proxy).