Code conflicts between Domain and Subdomain - mobile

I have a regular web site and a mobile site that both use App_Code folders. The problem is the sites share a lot of functionality. I have tried the following techniques
Referencing the Regular sites App_Code folder from the Subdomain.This doesn't work. I get a compile error
Duplicating the regular sites App_Code folder and using it in the sub domain. This leads to namespace conflicts

I ended up changing all the namespaces so they don't conflict...

Related

CakePHP v2.x - More then one set of config files

I have "inherited" legacy CakePHP application which should be now deployed to multiply clients. I have search through the documentation for the version 2.x, but I was unable to find the following:
How can I easily store the different Config files for different clients? The reason is simple, each client will have different database details, different email setup ...
Should I have a default folder and for the other make a duplicate folder named Config_another_client_name folder and inside have a copy of those files? Does anyone have a better idea?

Multiple web in one domain

I'd like to host three react web sites in one domain. But each web is heavy.
I've heard about the subdomain and subdirectories, but is this done in one file? Or does that mean I'll combine them at hosting stage? (npm start 3 times)
You can make sub domains and point to specific directories of your website
as api.domain.com points to one directory, dashboard.domain.com points to another directory and redirects to the specific site.
Or you can make one directory and place your websites in sub directories and can access them as domain.com/site1 , domain.com/site2 respectively.
How to create a subdomain and point to a certain directory
What you're looking for are sub domains, eg:
site1.yourdomain.com
site2.yourdomain.com
site3.yourdomain.com
Each subdomain has a different directory on your web server, or can even point it to another server. You can look into CI/CD to help automate your build and deployment process.
How to create subdomains
CI/CD Example With Docker

CakePHP2 coexising with CakePHP3 on same domain

Let's suppose an application written in Cake2. This application is huge. This application is mainly about CRUD's. Rewriting this application into Cake3 could be very time-consuming.
Now, I need o extend this application with lots of functionality. More and more CRUD's.
Application interface must look same, there must be single authorization and authentication provided by old app, or maybe rewritten into new app.
Now, is there any way, that existing application ( in Cake2 ) could work on same domain with Cake3?
I know that added functionality could work on subdomain like
Cake2 app is domain.tld
Cake3 app is storage.domain.tld
but how complicated, problematic could be set things as
domain.tld/[beefs|chips|sausages] <- Cake2
domain.tld/storage <- Cake3
Opinions?
It's pretty easy. Just configure your webserver to route /storage to your Cake3 app and all other to the Cake2 app.
Configure nginx with multiple locations with different root folders on subdomain (concept is the same)
https://www.nginx.com/blog/creating-nginx-rewrite-rules/
Google knows a lot more :)

Custom Url with Umbraco(other CMS) to point to existing website

We have a running multi-lingual app hosted in Azure written in AngularJS. For managing some of the unsecured/public pages, we are looking for hosting another app with a CMS. So our app structure is would look something like:
App: www.example.com
CMS: www.examplecms.com
What we want to achieve is that dynamic content generated by CMS (different domain) for static pages be served using urls in www.example.com. Is it possible? We are primary targeting .net based CMS solutions but are open to other platforms. The static content is not too complicated.
Since the app supports multiple languages and most of the CMS solutions available offer multi-language support via subdomain.example.com or www.example.com/language/ directory structure, we want the custom url redirection to point to our app site (www.example.com).
Looking for suggestions you opinions or best strategies to work around this problem.
This Q is off topic, nether the less...
As you would essentially be running 2 entirely different web sites, yes everything would work just fine. The requirements are vague and very generic but any application/CMS could be setup in different domains and if you wanted requests made between them, allowing cross origin requests would allow sharing content/data.
Umbraco, like many CMS's supports multilingual sites using path prefixes as you mention along with any other method you are willing to write yourself.

Can two apps have same .xap file name?

I have developed a paid app for WP7. Now, I am creating free version by slightly modifying it. Can both the apps have same .xap file ? Will it not create any issue for the users who have both the versions ? How to modify the name if required ?
The xap name isn't important, as each app is deployed to a different folder on the phone. Just make sure that both apps have different icons and different names or they'll fail the certification.
They can have same XAP name or assembly name or namespace, but make sure the ProductID is different when testing and debugging. Otherwise you'll overwrite the first app when deploying but the second app.
By defining two different ProductIDs you are able to deploy them side by side and test them as two different apps.

Resources