How To Deploy Strapi To Digitalocean [ best cms for developers and content managers ]

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • #strapi4 #strapi #deployment #digitalocean
    How To Deploy Strapi To Digitalocean [ explained by Strapi user in less than 5 minutes ]
    This tutorial video will show you how to deploy Strapi, the best and easiest CMS to work with on Digital Ocean.
    Subscribe / codingafterthirty
    Many people have been using Strapi as web developers and as content managers looking for a CMS that is easy to get started with, very customizable, and easy to use.
    This Strapi tutorial shows you the concise steps you need to successfully deploy your web application. It is based on a longer video that you can find below.
    • Deploying Strapi to Di...
    A complimentary article will be coming soon, showing you the steps in more detail outlined in this video.
    If you have any questions, please ask in the comments below.
    Thank you for checking out the video; I know there are many other tech youtube channels out there. So thank you for choosing ours.

КОМЕНТАРІ • 36

  • @cjhmdm
    @cjhmdm Рік тому +2

    Just an FYI, this is great for deploying to a DO dev database but the steps change for deploying to a production database. There's an updated guide from strapi that briefly touches on how to do so but it lacks substance and many people, myself included, are having difficulties. Maybe something worth looking into and perhaps creating an updated guide?

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому

      Thank you will take a look. I currently have two projects deployed on DO will double check how I deployed my database.
      Will also review the Strapi guide ne will make an updated video when get the chance.
      Thank you.

    • @cjhmdm
      @cjhmdm Рік тому +2

      @@CodingAfterThirty I found out what needs to be done in order to connect to a production managed database. Basically, you remove all other database vars previously set, then set the following:
      DATABASE_URL=${dbClusterName.DATABASE_URL}
      DATABASE_CA=${dbClusterName.CA_CERT}
      From there, follow their updated guide toward the bottom where they address managed dbs, updating database.js as necessary. One of the 2 things they don't cover is how to correctly obtain the database url, nor how to configure the db ssl cert (which you covered in this video).

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому

      @@cjhmdm Thank you.

  • @swamprott8591
    @swamprott8591 2 роки тому +3

    I really like this guy. Straight to the point. No bs.

    • @CodingAfterThirty
      @CodingAfterThirty  2 роки тому +2

      Thank you for checking out the video. Glad you enjoyed it.

  • @Flo_Motion
    @Flo_Motion 2 роки тому +1

    You're a god amongst men. Most devs don't care to show the nitty gritty. I have been a developer working with java the bean since the early 2000's and deploying javascript based frameworks to some of these platforms has been the most odd, frustrating thing in a long while. Thanks again.

    • @CodingAfterThirty
      @CodingAfterThirty  2 роки тому

      Thank you so much. I am still learning a lot myself. So anytime I can share something I learned, it make me happy.

  • @olivyae3057
    @olivyae3057 Рік тому +1

    You just saved my soul. I tried to deploy Strapi for over a week with AWS and it just couldn't work; this was in 5min as promised. 10/10

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому +1

      Thats awesome. For majority of my projects I use digital ocean. So convenient. Glad the video helped.

  • @jonnowitts
    @jonnowitts Рік тому +1

    Thanks for this, it helped me get over the last hurdle I was facing and put my Strapi instance live!

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому +1

      Nice. Glad it has helped. If you have any other Strapi specific questions let me know.
      I might do more intro to Strapi videos.

  • @ron-almog
    @ron-almog Рік тому +1

    that's nice, but for anything beyond quick and dirty poc, you would want to be able to work locally, or at least have dev/qa/prod environments. how do you do this? how to you sync the databases? how is the development process look like? can you push on your local version and pull on the production? will this work?

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому

      Using digital ocen app deployment is definitely great for beginner to dev ops.
      My app is fairly simple and I am not worried about complex deployment work flow.
      On my other project, I do all my development locally and have basic test and eslint checks run with git hub actions before my code can be merged to the main branch.
      In terms of database, my local DB and production DB are not connected.
      This way I avoid pushing any thing to production DB by accident.
      In terms of how easy it is to pull your production DB from a digital app platform to make changes or updates, to be honest, I did not get that far yet.
      But it is on my list of things to do.
      Most enterprise-level Strapi users utilize AWS and have a more flushed-out process.
      For a blog type of website digital ocean app platform is perfect.
      For anything else, I would consider AWS or, if wanting to stick to digital ocean, use their droplets instead.
      Something I am looking to try out.
      Hope this helps.

  • @AyushSingh-qn9wy
    @AyushSingh-qn9wy Рік тому +2

    Do I need to rename localhost to my server IP address if I want to deploy it on vps server

  • @metamythworks
    @metamythworks Рік тому +1

    3:37 - where do you get those strapi specific values? App_Keys, JWT_Secret, etc

  • @CodingAfterThirty
    @CodingAfterThirty  2 роки тому +2

    Thank you guys for checking out this video, let me know in the comments if you have an app already deployed and what you have build.

  • @davidgabrielcayllahuabetal2637

    How about, when I do populate or nesting with relational tables with a database in production, why does it take a long time, in local it flies but in production it takes up to 3 seconds to fetch the data, which is a lot for little data, why does it happen?

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому

      That is interesting. Would love to see your example. The Strapi discord has open office hours Monday through Friday 12:30 pm cst. Great place to stop by and ask questions.

  • @vladalexandrumeici1290
    @vladalexandrumeici1290 2 роки тому +2

    Hi! I have a deploy error: "self signed certificate in certificat chain". I followed your steps exactyl. Do you have a solution for this?

    • @vladalexandrumeici1290
      @vladalexandrumeici1290 2 роки тому +1

      I had a another field in .env file which I needed to add as an environment variable: ADMIN_JWT_SECRET. Problem solved!

    • @CodingAfterThirty
      @CodingAfterThirty  2 роки тому

      Glad you were able to figure it out. Yeah, you know have to pass that in the env variable when in production.

    • @CodingAfterThirty
      @CodingAfterThirty  2 роки тому

      Thank you for sharing this 🙂.

  • @spirobel
    @spirobel 2 роки тому +1

    is there a tutorial for just deploying with sqlite? I think sqlite should be fine for smaller projects and it would make it a bit simpler to deploy because there is no need to configure the database.

    • @CodingAfterThirty
      @CodingAfterThirty  2 роки тому +1

      I am sure there is, but I feel a lot of times, your deployed Strapi instance will be teared down when not in use, in that case, any local db would be deleted.
      That is why I feel SQLite not recommended and it is better to go for a managed database.

    • @spirobel
      @spirobel 2 роки тому

      ​@@CodingAfterThirty I found a way. I also recorded my screen while doing it. I will share it later. It is slightly better for beginners, because they dont need to learn about how to configure the db and can just press one button. I also saw this trend recently that people just started using sqlite in production. I think it can make a lot of sense. It is very unlikely that we will ever reach the limits of sqlite with a strapi project. (especially for people just starting out)

    • @Titan-ey2wj
      @Titan-ey2wj 3 місяці тому

      @@spirobel any idea , video showing how to deploy strapi with sqlite? please

    • @spirobel
      @spirobel 3 місяці тому

      @@Titan-ey2wj yes i have. THere is a video on my channel for this. I still use it atm ... (but plan to migrate soon cuz i wrote my own webframework)

  • @eleah2665
    @eleah2665 2 роки тому +1

    Very good. Thanks. How is the Ayn Rand study going?

    • @CodingAfterThirty
      @CodingAfterThirty  2 роки тому +1

      I pretty much read all her books, Atlas Shrugged was my favorite, but I also liked Fountain Pen.
      It has been a big part of what shaped my upbringing, but as I got older I realized that there is no perfect solution to world problems.
      But anyways, really appreciate you checking out the video and your support.

  • @nqomlilo
    @nqomlilo Рік тому +1

    There are things you dont mention here that are important. How about the fact you cannot make content types in the way you have mentioned. Making that strapi impossible to use!!!???

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому +1

      Thank you for your feedback. Can you give me some examples of what you mean? Maybe I can clearly few things.
      I use Strapi as my main cms in multiple projects and haven't yet run into any issues in my use cases.
      If you are referring to creating new content types in production, that feature is disabled by default. Ton prevent user error and breaking the app.
      Instead you would do it locally in development mode and push the changes to redeploy your application.

  • @kazmkus6577
    @kazmkus6577 Рік тому +1

    where can we host for free xd ?

    • @CodingAfterThirty
      @CodingAfterThirty  Рік тому

      Some people use Render for hosting. It has a free tear. I tried it and it is good.