deploying on AppHabor

Topics: User Forum
Feb 7 at 2:51 PM

Hejsan,

I tried to deploy n2cms on appharbor and immidiately got some errors. I was wondering if it is at all possible to deploy it there?

BTW: I really like n2cms but you should seriously spend some time documenting or at least explaining what is what. For instance, I don't understand what exactly do I get by dinamico? The description is very short on Nuget.

Skål

Coordinator
Feb 7 at 3:26 PM

Can you post a stack trace, or a link to where this can be observed?

Thanks for pointing this out. Dinamico is an initiative to create a set of templates to fit the new decade. It's currently less features than the MVC templates but uses things like razor views and more flexible theming.

Feb 7 at 4:29 PM
Edited Feb 7 at 4:31 PM

you can observe it here: http://n2cms-2.apphb.com/

the project is the base MVC 3 template plus N2CMS with Dinamico installed via nuget, nothing else.

I actually tried 2 methods and one seems to work.

The first method, pushed my repository to appharbor and let them build ( as it should be done ) - doesnt work

Second method, pushed a pre built project - works ( not recommended by appharbor )

*in both methods I enabled write access to the file system, otherwise if not enabled I get a parser error for global.asax

It works locally just fine.

Also I noticed that even though I already ran the installation, it asks me to install it again when on appharbor.

You might wanna experment with it yourself on AppHarbor.

Thanks for the quick reply.

Coordinator
Feb 7 at 9:30 PM

Hi. I did experiment, and I must say it's quite painless to set up. Pushing directly worked directly, and building via github after a few stumbling steps.

It seems appharbor clears app_data which contains the sqlite database when receiving from github which explains the installation you mention. I would use MySQL.

The error you get seems to be that N2.dll is missing from bin. If you analyze the build log you might be able to figure out why.

I pushed the steps getting github integration up and running, perhaps they can help you:

https://github.com/libardo/n2appharbor/commits/master