Wildhoney/Magento-on-Angular — pull request #66 by aonic (2014-02-15 04:08:26+00:00)
Title: Remove Magento from Git, and use central config file for settings

This removes the magento folder from this project. Before you pull down the changes I recommend you do this:

mv ./magento ../
git pull
ln -s ../magento

Then edit the new `config.json` to make sure all the variables are correct. You need to run `grunt` after you edit the `config.json` to propagate the relevant config values to Angular. Only hand-selected values from the main `config.json` are copied to the public-facing version of the `Config.js` file.

Here is an example of my `config.json`

{
"socket": {
"ip": "127.0.0.1",
"port": "8888",
"host": "moa.cloud-ops.net"
},
"magento": {
"path": "/var/www/magento",
"host": "http://moa.cloud-ops.net/magento",
"store": "0"
},
"api": {
"host": "http://moa.cloud-ops.net/api/public",
"provider": "magento"
}
}

Ideally users of this project would make separate vhosts to the Magento instance, a separate vhost to the `/api/public` folder, and a separate vhost to the `/store/` folder. And update the `config.json` with the new host/paths.