Screenshot of Laravel website

What’s a Laravel?

Laravel is a modern Web application framework based on PHP, supported by a very active community, with a rich library of plug-ins to choose from.

The 21 Cloud Box provides a very simple Laravel deployment method. You can deploy in a static web environment on the 21 Cloud Box.

How to deploy it?

  1. Register as a member of 21 Cloud Box
  2. Create a PostgreSQL database
  3. Fork the Laravel example on Gitee
  4. Create a cloud service on cloud box 21 and give cloud Box 21 access to your code base
  5. Configure the following Settings

The environment

PHP 7.2

Copy the code

Build command:

./build.sh

Copy the code

Start command:

PHP artisan serve --host=0.0.0.0 --port 10000Copy the code

Point advanced configuration to configure environment variables:

KEY VALUE
APP_ENV production
DB_CONNECTION pgsql
DATABASE_URL Create a cloud database midpoint in step 1Database URLTo obtain
APP_KEY Paste byphp artisan key:generate --showThe generated key

If you don’t clear to draw text on description, you can refer to the following practical video: www.bilibili.com/video/BV1ef…

Why choose 21 Cloud box?

Option-free, out-of-the-box cloud services are largely absent in China, but if you’re looking for a cloud service platform like Heroku or Nelify, 21 Cloud Box is still in business, and it’s the closest.

What are the differences between 21 Cloud Box and these foreign cloud service platforms? For reference:

  • Cloud Box vs Heroku
  • Cloud Box vs Netlify
  • Cloud Box vs. Vercel
  • 21 The Cloud Box vs Gatsby Cloud
  • 21 Cloud Box vs Github Pages
  • Cloud Box vs. Surge. Sh
  • Comparison in feature and price: 21 Cloud Box vs Heroku, Netlify, Vercel

The original blog: www.21yunbox.com/blog/soluti…