How to Deploy a Laravel Application to DigitalOcean in 5 Minutes (With CI/CD Setup)

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 19

  • @jordanalbarracin3119
    @jordanalbarracin3119 7 дней назад +1

    Hi, I have to deploy my Laravel application. What is better for me? Digital Ocean or AWS?

    • @CodingMonk
      @CodingMonk  7 дней назад +1

      Digital ocean is cheaper and quick imo. But if you are expecting 100k users go for aws

    • @jordanalbarracin3119
      @jordanalbarracin3119 7 дней назад +1

      @@CodingMonk Thank you, very kind!

  • @julienSibille
    @julienSibille 2 месяца назад +1

    Thanks ! Deploy topic is very interesting !
    How do you link your domain name to your app ?

    • @CodingMonk
      @CodingMonk  2 месяца назад

      There is an option available in setting once you deploy app.

    • @julienSibille
      @julienSibille 2 месяца назад +1

      ​@@CodingMonk ok thanks ! Is it possible to start the reverb in the console preprocess ?

    • @CodingMonk
      @CodingMonk  2 месяца назад

      @julienSibille you can spin up another worker by creating new app. Thanks how you can scale different processes easily

  • @itsmetarak9472
    @itsmetarak9472 Месяц назад +1

    Hi bro, I built a laravel web Application and i used vue.js for frontend.
    Can you please suggest me how can i deploy my web application in Digitalocean.
    I have tried with creating drople and deploy using ssh but I'm facing some issues after deploy like ssl not support so i delete the droplet can you help me with this please.

    • @CodingMonk
      @CodingMonk  Месяц назад

      Laravel app platform will detect your app. And you can specify build commands for your app.

  • @jaysontadayca8838
    @jaysontadayca8838 23 дня назад

    hi, i use a teplate for my laravel, but for some reason, the style is not loaded in my laravel. like no design at all

    • @CodingMonk
      @CodingMonk  23 дня назад

      Check your tailwind or stylesheet file. Or web pack config

  • @ahmed4so
    @ahmed4so Месяц назад +1

    What about the application have database how i can run the migration??? Plz help

    • @CodingMonk
      @CodingMonk  Месяц назад

      You can specify migration command in build commands

    • @ahmed4so
      @ahmed4so Месяц назад

      @@CodingMonk should i need database server or he will take care of it

    • @ahmed4so
      @ahmed4so Месяц назад

      @@CodingMonk i got [2024-10-05 08:03:48] │ public/build/assets/app-z-Rg4TxU.js 35.05 kB │ gzip: 14.08 kB
      [2024-10-05 08:03:48] │ ✓ built in 252ms
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ In Connection.php line 825:
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select t
      [2024-10-05 08:03:49] │ able_name as `name`, (data_length + index_length) as `size`, table_comment
      [2024-10-05 08:03:49] │ as `comment`, engine as `engine`, table_collation as `collation` from infor
      [2024-10-05 08:03:49] │ mation_schema.tables where table_schema = 'faculty_recourse' and table_type
      [2024-10-05 08:03:49] │ in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name)
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ In Connector.php line 66:
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ SQLSTATE[HY000] [2002] Connection refused
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ INFO Seeding database.
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ In Connection.php line 825:
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: insert i
      [2024-10-05 08:03:49] │ nto `users` (`name`, `email`, `password`, `updated_at`, `created_at`) value
      [2024-10-05 08:03:49] │ s (Admin User, ahmed@gmail.com, $2y$12$zN2nN8wxlj7mVOOonvCOGPYR
      [2024-10-05 08:03:49] │ c.G9A5fmt/lqklGGYaLhnbxIZHy, 2024-10-05 08:03:49, 2024-10-05 08:03:49))
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ In Connector.php line 66:
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ SQLSTATE[HY000] [2002] Connection refused
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ building: exit status 1
      [2024-10-05 08:03:49] │ ERROR: failed to build: exit status 1
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ For documentation on the buildpacks used to build your app, please see:
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ Node.js v0.4.0 do.co/apps-buildpack-node
      [2024-10-05 08:03:49] │ PHP v2.254.4 do.co/apps-buildpack-php
      [2024-10-05 08:03:49] │
      [2024-10-05 08:03:49] │ ✘ build failed

    • @CodingMonk
      @CodingMonk  Месяц назад

      You need db server, specify in env variable

    • @CodingMonk
      @CodingMonk  Месяц назад

      @@ahmed4so you need to create db server, you can use digital ocean managed db.

  • @aazero1011
    @aazero1011 Месяц назад

    I followed your exact instructions but when I deploy I get: ERROR: failed to build: exit status 1 No file to start server Error: package-lock.json does not exist. (there's package.json only on the project but that's never been a problem). It's trying to use a Node.js buildpack instead of a PHP buildpack..

    • @CodingMonk
      @CodingMonk  Месяц назад +1

      You need to push package-lock.json as well in your repository