Waylon  Bruen

Waylon Bruen

1619441340

Laravel and MongoDB on ploi.io

In case you want to deploy your Laravel app (or any kind of PHP-based application), ploi.io is a service that helps you with that with a minimum of Sysadmin knowledge. It helps you spin up your own VPS or Bare Metal instance on Vultr, DigitalOcean, Linode or Scaleway, UpCloud, and Hetzner.

To deploy the app, you need to store it on a git-based platform. You can choose from GitHub, Gitlab, or Bitbucket. Ploi also comes with monitoring through Servitor and supports Cloudflare management and automatic backups using DropBox, so your data will be safe!

It comes with a ton of out-of-the-box features for your PHP application: PHP 7.0+, NGINX, MySQL/MariaDB, Supervisor (to daemonize your applications) and supports even one-click app installs for WordPress, OctoberCMS, or Nextcloud.

What you need to do is to code. The rest of it — is Ploi’s job.

What’s MongoDB?

MongoDB is an object, document-oriented kind of database. It’s like a normal MySQL database but it has a few pros and cons compared to it. The advantages of using MongoDB are:

  • flexibility (we don’t have to define a schema using migrations unless we want to set indexes or unique keys)
  • speed (since we do not rely on tables and we rely on JSON-encoded files that are written on disk, we get high I/O)
  • scalability (we can create replicas, just like in MySQL, but we can shard, or “split” the database content, and we can scale it across multiple regions without cutting off speed or availability)

#laravel #mongodb #devops #php #database

Laravel and MongoDB on ploi.io