How to install Ghost inside an existing node.js application on Azure? -
can install ghost (http://ghost.org) runs inside existing node.js express application (like this: {my domain}/blog)?
i'm using azure websites host site.
please note: prefer generic solution can run on platform... thought mention it's on azure in case provides simple way this.
yes can that.
you need to:
1. add new blog application
basically go portal -> configure tab -> scroll way bottom , add this

2. configure ghost run on sub folder
publish ghost whichever folder mapped application in step above. can use ftp, webdeploy or scm (https://<yousitename>.scm.azurewebsites.net/debugconsole that's choose , folder layout looks

igonre deployments folder, it's not related this
in config.js ghost, under production environment node make sure have url
production: { url: 'http://<yoursitename>.azurewebsites.net/blog', mail: { ...... } } 3. fix main site's web.config
go main sites web.config , wrap whole <system.webserver> element in <location path="." inheritinchildapplications="false">
basically web.config should have looked
<configuration> <system.webserver> <handlers> <add name="iisnode" path="server.js" verb="*" modules="iisnode"/> </handlers> <rewrite> <rules> <!-- rewrite rules --> </rules> </rewrite> .... </system.webserver> </configuration> and should
<configuration> <location path="." inheritinchildapplications="false"> <system.webserver> <handlers> <add name="iisnode" path="server.js" verb="*" modules="iisnode"/> </handlers> <rewrite> <rules> <!-- rewrite rules --> </rules> </rewrite> .... </system.webserver> </location> </configuration> notice main site express.js in case not ghost site
that should need do.
Comments
Post a Comment