The following package versions are used for the app: Then create an app instance to use for testing. To use Pusher Channels, ceate a free sandbox Pusher account or sign in. But if you’re using a Linux-based server, all you have to do is log in to it and append your local machine’s public ssh key to the ~/.ssh/authorized_keys file in the server. This tutorial won’t be covering how to add ssh keys to a remote server. Don’t assign a password to the ssh key you generate as the tool that we will be using for logging in remotely to the server doesn’t support logging in with ssh keys that require a password. Just follow their documentation for the instructions.Ī remote server to be monitored is also required. For the HTTP server, it’s going to use PHP’s built-in server instead of Apache. If you opt for Laravel Valet, you also need to install PHP, Composer, MySQL, and Node separately. Out of the box, Laravel Homestead and Laradock will come pre-installed with the required software. This is the same environment that I’ve used for creating this tutorial. If you have a bit more time, you can install Laradock instead. The easiest way to follow this tutorial if you don’t already have the development environment is to use either Laravel Homestead or Laravel Valet. You need to have Apache, PHP, Composer, MySQL, and Node installed on your machine. Things like generating ssh keys and adding them to your remote server. You also need to know basic server management for infrastructure providers like DigitalOcean or Linode. Knowledge of PHP is required to follow this tutorial. In this tutorial, we’ll be creating a live server monitoring app with Laravel and Pusher Channels. If you’re like me and all you want is some basic functionality such as realtime monitoring of whether specific software on your server is running or not, then creating your own server monitoring app is the way to go. Aside from that, they’re usually not cheap. But more often than not, especially on small projects, a lot of the functionality that these services offer is more than what you need. There are also open-source solutions such as Nagios. Some server infrastructure providers such as DigitalOcean also comes with basic server monitoring features such as disk, CPU, and memory. Most popular among them are Datadog and New Relic. There are lots of server monitoring solutions out there.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |