KaizneCodes
KaizneCodes
  • 4
  • 28 828
Deploy Strapi on Digital Ocean Full Guide
m.do.co/c/254ad59540d6 ($200 free trial)
docs.strapi.io/dev-docs/deployment/digitalocean-app-platform
www.npmjs.com/package/strapi-provider-upload-do
Code to add to middlewares.ts file:
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"connect-src": ["'self'", "https:"],
"img-src": [
"'self'",
"data:",
"blob:",
"*.digitaloceanspaces.com"
],
"media-src": ["'self'", "data:", "blob:"],
upgradeInsecureRequests: null,
},
},
},
}
Переглядів: 7 474

Відео

How To Deploy Docker Image For Free On Google Cloud
Переглядів 10 тис.Рік тому
How To Deploy Docker Image For Free On Google Cloud
GitHub CI/CD Next.js Docker on Google Cloud
Переглядів 2,8 тис.Рік тому
GitHub CI/CD Next.js Docker on Google Cloud
Deploy Next.js with Docker on Google Cloud
Переглядів 9 тис.Рік тому
Deploy Next.js with Docker on Google Cloud

КОМЕНТАРІ

  • @om1719
    @om1719 2 дні тому

    Thanks a ton man!

  • @Abhishekverma-yj1or
    @Abhishekverma-yj1or 8 днів тому

    I have created strapi project on my local and my .env file looks like this -> APP_KEYS="toBeModified1,toBeModified2" API_TOKEN_SALT=tobemodified ADMIN_JWT_SECRET=tobemodified TRANSFER_TOKEN_SALT=tobemodified JWT_SECRET=tobemodified Is this correct?

  • @shadwar123
    @shadwar123 14 днів тому

    hey, Can I deploy MERN project using docker-compose.yaml directly on google cloud by this way ?

  • @AkwadNet1
    @AkwadNet1 17 днів тому

    That was helpful 🎉🎉

  • @ajimaulana8721
    @ajimaulana8721 19 днів тому

    Thanks bro

  • @borisbarzotto5785
    @borisbarzotto5785 22 дні тому

    Thx Kaizne 😉

  • @DeAndreJohnson212
    @DeAndreJohnson212 Місяць тому

    Yo, this super helpful and straight to the point!

  • @Solo_Antonio
    @Solo_Antonio Місяць тому

    Thank You for share. That was easy. I has a problem. The command " gcloud build" give me error when execute COPY from dockerfile. The problem was I have that directory in .gitignore . If you have the same problem check .gitignore and .dockerignore files.

  • @Milo_1010_
    @Milo_1010_ Місяць тому

    Great video ! Exactly what i was trying to achieve ! You saved me a lot of time, thank you a lot (i subscribed) ! I got a question for you, do you think for a small/middle traffic website, i should deploy my next js blog as static files or ssr ?

  • @gioedrianyap5415
    @gioedrianyap5415 2 місяці тому

    thanks bro, this really helped me

  • @eightuponatime
    @eightuponatime 2 місяці тому

    it's actually the best guide on youtube thank you!

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

    Thanks its really helped❤

  • @Nazhoglit
    @Nazhoglit 4 місяці тому

    thanks, i followed the official docs of Gcloud and i couldn't deploy, your video helped me a lot to deploy my api. Thank you!!!

  • @Joseph_David_
    @Joseph_David_ 4 місяці тому

    Thanks Bro.

  • @daiyantaken1727
    @daiyantaken1727 5 місяців тому

    Ports Working ?

  • @geralddd.g
    @geralddd.g 5 місяців тому

    W video bro

  • @karma3040
    @karma3040 6 місяців тому

    Fantastic guide! Dude I honestly wish you have a fantastic year.

  • @grindco732
    @grindco732 6 місяців тому

    thanks a lot!! it's really good guide and a perfect explanation... it's sad that you don't have enough subscribers

  • @fabriciocunhadev5791
    @fabriciocunhadev5791 7 місяців тому

    Thanks for this tutorial man!

  • @seven1104
    @seven1104 8 місяців тому

    Really good tutorial, helped me out a lot. But I just wanted to give a warning to anyone wanting to replicate it - the strapi-provider-upload-do package appears to be outdated. I could be wrong but I've spent two days trying to get it to work, there hasn't been an update to it in 9 months, and all the documentation I can find is outdated. You (and I lol) will have to find another way to host your images.

    • @Milo_1010_
      @Milo_1010_ Місяць тому

      i just tried and it worked

  • @balee9601
    @balee9601 9 місяців тому

    Thankyou

  • @jonnowitts
    @jonnowitts 11 місяців тому

    Thanks for this, really helpful. I'm plugging in a DO bucket that already has images in. Strapi doesn't seem to pull them through for me though. Is that just how it works or do you know if I need to configure something else?

  • @magikarp2063
    @magikarp2063 11 місяців тому

    There is an issue where videos (or maybe just larger files) don't contain "https:/" when uploaded. This makes video preview not work in strapi and can also cause issues on the frontend.

  • @ahmedamin1454
    @ahmedamin1454 11 місяців тому

    my guy! you are brilliant! where is the domain part?

  • @maksymkinash1582
    @maksymkinash1582 11 місяців тому

    Good thatks _)

  • @11vag
    @11vag 11 місяців тому

    Thank you man. I really, really, really appreciate it.

  • @jarrdojeck436
    @jarrdojeck436 11 місяців тому

    I have a NextJS project hosted on google cloud run and built through cloud build. I am having an issue with the ENV variables not able to be read in my NextJS app. Any idea why this might be? I've been stuck on this for days

    • @patboy24
      @patboy24 10 місяців тому

      .gcloudignore is copying the same value inside .gitignore if your project directory contains .gitignore that ignores .env then delete .env from you .gitignore and re-build gcloud docker image. Hope it helps!

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

    How to add the .env variables? I've been struggling for days. Server side is working good. But on the client side, i got all of variables undefined.

    • @patboy24
      @patboy24 10 місяців тому

      .gcloudignore is copying the same value inside .gitignore if your project directory contains .gitignore that ignores .env then delete .env from you .gitignore and re-build gcloud docker image. Hope it helps!

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

    Words can't express how much I appreciate this. You saved me a lot of time and trouble. I wish you everything you want.

  • @user-ht1mo1ji8k
    @user-ht1mo1ji8k Рік тому

    Amazing, thank you so much!

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

    Great guide.

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

    Nice info

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

    How to show the memory usage on terminal footer like yours ?

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

    this is gold

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

    Really good guide, was exactly what I was looking to do you've saved me a lot of time 🙏

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

    How did you even figure this out??? Qué genio señor

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

    godly level

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

    What about environment variables? How to pass them from github secrets to dockerfile and lastly to cloud run?

    • @benjaoliva3383
      @benjaoliva3383 8 місяців тому

      I think you have to pass the secrets on the docker build command using the --secrets flag from docker build, then in docker file manage to read the secrets and set them with ENV and thats all.

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

    be regular

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

      kneel down and appreciate the free tutorial

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

      @@francisyang4718 yeah i have appreciated it . but who the F are you say it ??

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

    Does Nextjs image optimisation work here like it does in vercel?

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

      Unfortunately, Next.js Image only works when you deploy on Vercel.

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

      @@KaizneCodes So what about using it for GCP? Should we use it or not?

    • @somayajisubs
      @somayajisubs 10 місяців тому

      Does OG configerations work on cloud run?

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

    just the info I wanted and nothing more or less. well played sir.

  • @jay.kaykay
    @jay.kaykay Рік тому

    thank for share

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

    Thank you very much, and now... how can I add my own domain ?

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

      I recommend you look at this: cloud.google.com/run/docs/mapping-custom-domains

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

    Thanks ❤❤❤❤❤ Brother I use auto generated domain Publically any problem for security purpose Or custom domain better therefore my backend project Please reply

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

      For backend, using an autogenerated domain is fine as long as you restrict access to your front end only and not to the public.

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

      exactly!@@KaizneCodes

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

    Awesome! Thanks a lot!

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

    Could you please tell me where can I find url of deployed version to use get, post etc requests in Postman?

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

      It should be the app url, if you go into the apps tab on digital ocean or click into your project, in my case since my project name is "digital-ocean-strapi-example" it is like this: digital-ocean-strapi-example-h2iio.ondigitalocean.app/ and then to access the api you append api to the end of the url like this: digital-ocean-strapi-example-h2iio.ondigitalocean.app/api, more info can be found here: docs.strapi.io/dev-docs/api/rest

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

      Thanks I know it’s main url+ / example . I could find them in a role section. Thanks a lot

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

      Thank you!@@KaizneCodes

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

    Thank you so much mate!

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

    thanks! this guide really helped me

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

    One of those things where this is the exact thing I needed! I have been stuck with a blog that I am making with strapi and sveltekit. Deploying strapi became a nightmare and cloudinary doesn't work in my country si was literally trying to figure this out! Thank you!!!

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

    Can we do this with next js beta app dir