Is it possible to deploy the same meteor app to a domain and its aliases? For example, myapp.com and www.myapp.com
Right now if I deploy to myapp.com, www.myapp.com will say
There is no site deployed at this address.
So I'm wondering if meteor deploy can accept multiple domains (myapp.com, www.myapp.com, etc). Or if there's any alternative method.
Two good solutions:
Use domain forwarding if your DNS host allows.
Or
Create and deploy a simple meteor project to redirect from one domain to another (e.g. www.myapp.com to myapp.com). You can do a simple browser redirect (window.location). Or, you can use the meteorite Router package to do a server redirect.
Yes, you can do it using your DNS host's domain forwarding. See Meteor.js deploy to "example.com" or "www.example.com"?
You're welcome '-)
Related
I'm fairly new to MERN and we're trying to deploy an app to DigitalOcean with one main domain and 2 subdomain.
we have the following setup for our app.
Three separate repos:
Api (backend server for reading writing data)
User (front end for users of our app)
Admin (back end for admins)
We have 3 domains / subdomains registered in the following format:
domain.com (user)
admin.domain.com (admin)
api.domain.com (api)
Questions:
How do we setup the droplet to accommodate this configuration? (user and admin side should point to api server)
How do we deploy to the three separate repos from github to the one droplet while respecting the corresponding domain / subdomains?
Other considerations:
Do we need to use Nginx? Pm2?
We will be using mongodb as our database.
Thank you!
I would suggest you to use Nginx as a web server. PM2 would not be a choice because it's not probably a server by itself.
Refer Nginx Docs here
We want to host the application on IIS server. We need it to support dynamic routing.
We tried downloading IIS node and we're not sure how to proceed.
Is there a file that needs to be loaded and needed to run, such as server.js?
You will need to install nodejs on the host system and have server running on a port, then use IIS as a reverse proxy on top.
This article goes into detailed steps on how to get there - https://alex.domenici.net/archive/deploying-a-node-js-application-on-windows-iis-using-a-reverse-proxy
I Wanted to create GSuite app and deploy in my own server instead of deploying in google cloud. Is there a way to do it? It would be great if i get some solution for this.
Thanks in advance
You can't deploy G Suite apps/extensions to your own server - they must be published via Chrome Web Store and/or G Suite Marketplace.
What you can do when you publish your app, is to set it as private so that only users in your domain can see and install the app. See Step 4 on Create and publish custom Chrome apps & extensions page for more details. Obviously, the app must be published by a domain account - you don't get that option if you publish an app from your personal/Gmail account.
I have an app built on react native and I want to connect to a database that i have made on the Microsoft SQL server. I have searched online and there are things like myssql but I still get errors with that. I followed this tutorial nodejs from the official Microsoft website, and it works with the nodejs and I use node to run it, but how can i use this in my react native project?
You can use AXIOS to make requests to your NodeJS Server
In Android you can access your localhost by the IP 10.0.2.2 (default proxy configured in your Android Virtual Device).
In iOS you can just use localhost
Remember to add the port assigned your NodeJS Server and the
protocol http
Example URL for Android: http://10.0.2.2:3000
You need to write back-end service code.I suggest you to use Asp.Net Web API .You can use Entity Framework.
Also you can use PHP,Java or Python...
My current setup with the company i've joined is IIS is being used as our main web server, using a CA signed certificate. I've got access to the certificate.pdx aswell as the private key.
I've setup a https node API server to handle some real time stuff / act as a simple additional middle layer, but my website is being served through IIS. The flow of the application is something like this.
1) Visit web page where IIS will then serve it
2) Click on a button, which then makes a GET request to my node server
IIS NODE
E.g 100.10.10.10:3000/mypage > Click Button > 100.10.10.10:4000/myGetRequest
At the minute i'm just using self signed in my development environment, and manually accepting the certificates.
My question is can I just use the same certificate that IIS is using on my node HTTPS server, or do I need a different one?
It would be best if the IIS could proxy the requests to your Node app. That way your Node app wouldn't even need a certificate (if it's on localhost). See this answer for more details:
Configuring HTTPS for Express and Nginx
It uses the example of nginx but you should be able to proxy the requests with IIS as well. See this tutorial:
Setup IIS with URL Rewrite as a reverse proxy for real world apps