Grafana-Loki is a nice logging service and I want to deploy it for an app on Heroku. I've looked around and there doesn't seem to be too much information about this. I found this twitter thread which references this python repository, but I don't totally understand what's going on. I'm running a small javascript app on heroku, and I want the logs to go to grafana cloud. How do I apply this python code to my situation? I'm not that technical so I get lost easily when applying something to my own situation.
create a python project with the code and deploy it on Heroku
get the logs from your javascript project through heroku
procedure here
as configured in the code from here
it should push the logs to your grafana cloud
Related
I currently have a React-only app deployed on Hostgator (I used npm run build then just uploaded the files to cPanel) because it is just a front-end landing page. However, I am planning to add things like logging in and a user dashboard, which will "require" me to use Node.js, Express and MongoDB Atlas.
In this scenario, will it still be possible to deploy the website onto shared hosting on cPanel? It seems to me, from looking online, that this is not possible. In this case, what are my options for other hosting to deploy a MERN stack app on, and what are my options for backend hosting on cPanel that are not Node.js-Express-MongoDB? Do they have their own backend services?
Thank you!
I had the same query and the only solution that I could find was that it is not possible to deploy your MERN app on shared hosting and you need a dedicated server for your applications.
The best and cheaper way to do this is, wrap your application inside a container using Docker and deploy the docker image on a VPS (Virtual Private Server).
Or,
You can also use a separate service for everything that you have to configure yourself and then deploy your app. Kubernetes is the best tool to manage distributed systems.
I hope this helped you.
Ok this my sound silly but i have no clue on how to publish node.js backend for website i made. I am new at this and i know how to publish a website there are plenty of websites that offer hosting and domain for some amount of money but i don't know about backend. For example let's say i have node.js backend that reads data from MySQL database and sends it to my local-hosted website. And let's say i have nodemon package installed so i run it with nodemon and everything works fine. My question is how to publish this nodejs app along with my website and database.
You should get a VPS (Virtual Private Server) with Docker, It is the best solution.
Just copy your node folder and put it on a node docker image!
Got html front end? Just put it on an nginx docker image.
MySQL too, almost everything is possible with docker!
Want to learn more about docker? Here
Look into Heroku. Easy to use, mantain and deploy. You could either deploy from GitHub repo or directly via heroku.
Look into it here [https://devcenter.heroku.com/articles/deploying-nodejs]
I've created a REST API using Node.js and Express, so now I need to share it and publish it on a server in order to connect from Front-end.
Can you tell me a proper way to do it?
You could use Heroku for deployment, this way you can know how your app will fare. It's free moreover.
If you're satisfied with it then you can go ahead and buy a dyno or use other platforms like Azure or AWS.
To learn more on how to deploy your existing app to Heroku, visit this page.
The question you are asking is very broad. It can be done in a lot of ways. For me this 2 part tutorial was very helpful:
https://hackernoon.com/tutorial-creating-and-managing-a-node-js-server-on-aws-part-1-d67367ac5171. However, this only covers the installation on AWS EC2. This doesn't differ much from deploying it to Google Cloud, Azure or something local.
In general you need to fix the following steps:
1) Create a server somewhere (local or in the cloud)
2) Install all the stuff to run your app. In your case Node.js at least
3) Put a copy of your app on the server
4) Run it with node
5) Go to the ip of the server
The tutorial gives more details. DISCLAIMER: If you actually want to use this in production there is way more to consider. For example, security policies, setting up proxies, installing certificates etc. Please read up on that properly before you start running production apps.
You can install node on the the production server and then where the project is situated just .
copy that path
Open the Cmd >>
Enter "cd copied path .>>enter
you npm will be install & REST Api will Work.
I just know that my application isn't static.
I have used this github repository to build my application [https://github.com/jainishshah17/jainishshah.com][1]
It works perfect when i try on local host but I tried to deploy using AWS (Bitnami) and lots of other web hosting platforms but cant seem to find the right one working for me.
Can anyone tell me looking at the repository what would I need to host the app that I built?
Any help will be greatly appreciated.
For a simple MEAN stack App deployment, use Heroku.
Getting Started on Heroku with Node.js
I am trying to build a "server-less chat" app using the Ionic framework. The concept is pretty simple and has been done before, but I'm doing it for a school project. I'm pretty new to Ionic and Javascript in general.
Here's the problem I'm running into:
I'm trying to create a socket and send a UDP datagram (IP multicast) out over the LAN. I've found some Angular.js modules that seem to have some socket functionality, but it appears that they're all geared toward connecting to a server.
I've found this node.js module that appears to do what I want, but I don't know how to get it recognized inside Ionic. I'm sure I'm just missing an include or something. I have node.js installed and have searched through the directories, but haven't been able to find anything referencing the UDP/Datagram module.
https://nodejs.org/api/dgram.html
Any ideas?