-
-
Save marioy47/9496140 to your computer and use it in GitHub Desktop.
Aprovisionamiento de una imagen de Ubuntu 12.04 de Vagrant con MySQL, PHP5.5, Node.js 0.10 y Xdebug.
This file contains hidden or 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
curl -L -o 'provision.sh' https://gist.githubusercontent.com/marioy47/9496140/raw/a78ded02da3c3d210f04ed0eb3526cc2f9ea4c49/provision.sh | |
curl -L -o 'Vagrantfile' https://gist.githubusercontent.com/marioy47/9496140/raw/8483fc148f403cd32819e75d01ccd6a486dc4569/Vagrantfile | |
vagrant up |
This file contains hidden or 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
sudo apt-get update | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
sudo apt-get install -y vim curl python-software-properties | |
sudo add-apt-repository -y ppa:ondrej/php5 | |
sudo add-apt-repository -y ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug nodejs | |
cat << EOF | sudo tee -a /etc/php5/mods-available/xdebug.ini | |
xdebug.scream=1 | |
xdebug.cli_color=1 | |
xdebug.show_local_vars=1 | |
EOF | |
sudo a2enmod rewrite | |
sed -i "s/error_reporting = .*/error_reporting = E_ALL/" /etc/php5/apache2/php.ini | |
sed -i "s/display_errors = .*/display_errors = On/" /etc/php5/apache2/php.ini | |
sed -i "s/disable_functions = .*/disable_functions = /" /etc/php5/cli/php.ini | |
sudo service apache2 restart | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
sudo npm install -g yo | |
get install sass | |
gem install compass |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :private_network, ip: "192.168.33.33" | |
config.vm.provision :shell, :path => "provision.sh" | |
config.vm.synced_folder ".", "/var/www" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
La explicación del flujo de trabajo se encuentra en
https://gist.github.com/JeffreyWay/af0ee7311abfde3e3b73/#comment-1181091