danielsousa / magento1-skeleton
Magento 1 skeleton project
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 1
Language:Puppet
Type:project
pkg:composer/danielsousa/magento1-skeleton
Requires
- php: >=5.3
- aoepeople/composer-installers: 0.0.1
- tugagento/magento-mirror: 1.9.2.2
README
Requirements
- Install VirtualBox 4.3.x
- Install Vagrant 1.7.x
- Install the vagrant-hostmanager plugin with
vagrant plugin install vagrant-hostmanager
Create project with composer
composer create-project danielsousa/magento1-skeleton
The First Vagrant Up
-
Edit the
Vagrantfile:vim Vagrantfile- Change the VM IP if needed. Default is:
10.0.0.2(10.0.0.1is your machine) - Change the RAM or number of CPUs if needed.
- On the puppet part: change the factors
- Change
hostnamewith the development domain of your website - Change
db_*variables with your information or keep default values
- Change
- Change the VM IP if needed. Default is:
-
Start with any local operating system such as Mac OSX, Linux.
-
Run
vagrant up -
Run
vagrant ssh -
Run
sudo su && passwd vagrant -
Enter your password for the user
vagrant -
Connect to you database install sample data or restore backup.
What will install
- Magento 1.9.2.2
reset-symlinks.shscript. Running this script all symlinks will be reset.- Make sure `Advanced > Developer > Template Settings > Allow Symlinks is enabled
Packages
Are installed:
- apache-mpm-itk (with magento virtualhost)
- mysql-server (with custom my.cnf)
- mysql-client
- php5 (and some modules)
- screen (with custom .screenrc for root)
- vim
- wget
- curl
- git
- composer.phar
- mailcatcher (gem)
For Magento developers
Additional information
Import database
If file exists database.sql.gz in the main directory (where the Vagrantfile is), puppet will import the database during the first up.
Virtualhost
Per default the variable MAGE_IS_DEVELOPER_MODE is set to true.
The virtualhost is set on the htdocs directory.
Mails
MailCatcher is installed and configured into the /etc/php5/apache2/php.ini file.
How it works
If mailcatcher is stopped: all emails are lost.
If mailcatcher is started: all emails are catched.
If you want to start MailCatcher, simply run this command (with vagrant user) : mailcatcher --ip 0.0.0.0
Then go to : http://definedhostname:1080
If you need to stop the mailcatcher daemon : Click on "Quit" on the top right corner of the MailCatcher Web UI.
Credits
This vagrant machine as created based on monsieurbiz project