Wildhoney / Magento-on-Angular

Angular.js application using Magento as the backend API
360 stars 120 forks source link

Problems with Installation #105

Open paulchill opened 8 years ago

paulchill commented 8 years ago

Hi

I am trying to test this to prototype a new store but i am having problems with the installation.

I am running this on an aws server with no DNS and just from an IP.

my Config.Json is:

{ "socket": { "port": "80", "host": "localhost" }, "magento": { "path": "/magento", "host": "localhost", "store": "0" }, "api": { "host": "http://localhost/moa/api/public", "provider": "magento" } }

My Vhost file in apache is:

<VirtualHost :80> ServerName magento DocumentRoot /var/www/magento <Directory /var/www/magento/> Options Indexes FollowSymLinks MultiViews AllowOverride All <VirtualHost :80> ServerName api DocumentRoot /var/www/moa/api/public <Directory /var/www/moa/api/public/> Options Indexes FollowSymLinks MultiViews AllowOverride All <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/moa/store <Directory /var/www/moa/store/> Options Indexes FollowSymLinks MultiViews AllowOverride All

The store loads up but the node server wont start either, i get a 404 for any /api/ requests?

vrkansagara commented 8 years ago

I can fix your problem connect me via @vrkansagara and share details. thanks

vrkansagara commented 8 years ago

My current config.json looks like as bellow.

{
    "socket": {
        "port": "8080",
        "host": "Magento-On-Angular.com"
    },
    "magento": {
        "path": "/home/vallabh/www/magento",
        "host": "http://magento.Magento-On-Angular.com.com",
        "store": "0"
    },
    "api": {
        "host": "http://api.Magento-On-Angular.com.com",
        "provider": "magento"
    }
}

this will help you.