Deploying Strapi to DigitalOcean

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • Learn how you can host Strapi on DigitalOcean.
    0:00:07 Create a brand new project on Strapi
    0:04:11 Deploy on DigitalOcean
    Get started with Strapi - strp.cc/strapi-io
    Get started with DigitalOcean - strp.cc/digita...
    Learn more with Brayden Girard - / braydengirard
    Database Setup - docs.strapi.io...
    --
    Try live demo: strapi.io/demo
    Strapi Blog: strapi.io/blog
    Find help in our Forum: forum.strapi.io/
    We are hiring! strapi.io/careers

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

  • @bricenuzzo7747
    @bricenuzzo7747 2 года назад +30

    Perfect ! Exactly what I needed right now ! Could you make a part 2 with the storage configuration ? Like on S3 or Spaces ?
    Great work !

  • @JaimitoAleman
    @JaimitoAleman 2 года назад +4

    BRILLIANTLY DONE!
    I have followed many broken Strapi Guides that were most likely written for older versions of Strapi.
    This is the ONLY one that has worked for me.
    Thank you!

  • @jerryarekhandia1003
    @jerryarekhandia1003 2 года назад +3

    Nice video. You made a statement that when pushing a new commit or server needs to scale, there is no guarantee that the storage space will retain your files like images , videos and the likes and they recommend setting up a third party assets provider like AWS3. And promised to make a video but nothing from you yet since February. Devs who are new to strapi need such videos.

  • @elliotbehling4554
    @elliotbehling4554 2 года назад +1

    Best guide out there. Especially the configuration of the variables on the DO side.

  • @netsdj
    @netsdj 2 года назад +4

    Thanks for posting this, I really needed it! Please post how to configure an asset provider 🙏

  • @elithpalomino1368
    @elithpalomino1368 7 месяцев назад

    God bless your soul, thanks for this tutorial.

  • @WinglessWallaby
    @WinglessWallaby 2 года назад +11

    This is insane. Your deployment documentation is borderline useless. All of your deployment documentation relies on 3rd party services. The reason people are actually responding well to this video is because it's the only one that seems to be not massively opinionated, but even this process is insanely over complicated. Develop a standardized, default, dev to production workflow. What a miserable process this has been.

    • @Nice-sm5hr
      @Nice-sm5hr Год назад +2

      Agreed, I've spent a few years tooling around with the front end side of things but now trying to actually deploy stuff and it's a friggin' nightmare. I've spent over a week trying to deploy a Strapi app

    • @TheMrNazik
      @TheMrNazik Год назад +2

      Good to know I’m not the only one, who find Strapi quite hard to deploy. Especially, when you’re a front-end developer, and looking for a good headless CMS for your projects.

    • @justicewillima4455
      @justicewillima4455 8 месяцев назад

      ​@@TheMrNaziksame here,
      What other headless cms would you recommend,

  • @dev_jeongdaeri
    @dev_jeongdaeri Год назад +1

    super cool

  • @sinisaperovic3880
    @sinisaperovic3880 2 года назад +1

    Thank you very much for this tutorial. With so many Strapi tutorials that just don't work, I was hoping that this one would be different and decided to copy each step of your process, including exactly the same DO resources.
    While the Build process was successful (the log said "Build successful" at the end and the status badge was green) I was disappointed to see "Deploy Error: Non-Zero Exit Code" in the Deploy process. I couldn't find anything in DO's help on that particular error. Any tip would be appreciated.
    Furthermore, on the Strapi v4 docs website, there is a tip in the Digitalocean deployment section saying "The $5/mo plan is currently unsupported as Strapi will not build with 1G of RAM. At the moment, deploying the Strapi Admin interface requires more than 1g of RAM. Therefore, a minimum standard Droplet of $10/mo or larger instance is needed.". In your video, you are using 1GB configuration so that's another confusing moment. Is 1GB enough for the Admin interface or is it not?
    Thank you again for your time and effort in creating this video.
    Cheers.

  • @youfoundmalik
    @youfoundmalik Год назад

    Please can you guys add a video on how to setup the digital ocean space storage for strapi

  • @Marcin-Pilat
    @Marcin-Pilat 2 года назад +1

    Any clue, what is the difference for Strapi v4 between connecting to the dev database and managed databases on DO App? 3 days ago I have moved from dev db to managed db on DO, and all deployments start to fail. On the dev db it works just fine.

  • @ron-almog
    @ron-almog Год назад

    Nice.
    What about a development cycle? how do I work locally, test stuff, then push to production?
    can I work on the local with local db, and push to production? what will happen to the db changes? what about db migrations when we decide on schema changes and there is already data?
    can I have test and/or qa environment and move changes along between these environments? local>dev>qa>production? thank you.

  • @mathewdavies1480
    @mathewdavies1480 Год назад

    Note: When I attempted the method of deployment, the charge was $24, whereas when deploying to a droplet, it costs $12. I presume this is because they are using slightly different services.
    Setting up a droplet is a lot more involved, but Digital Ocean do have a guide for it.

  • @d.koshkarev
    @d.koshkarev Год назад

    Hi. Please help! How do I create a folder with a ready-made project Starpi to upload to my hosting via ftp? If I use "strapi build" and upload the contents of the build folder to the hosting via ftp, then nothing works. However, many other products work in a similar way. For example Nuxt JS

  • @AlexisSniffer
    @AlexisSniffer Год назад +1

    the images are deleted when doing redeploy. any solution?

  • @franklanzc
    @franklanzc 2 года назад

    Hi, tanks for the tutorial.. i have a question.. when the app is created on digitalocean the app must be create the mysql database inside ? or must be connected to another ip with database created?

  • @grigor.dimitrov
    @grigor.dimitrov Год назад

    Great tutorial, IT WORKS which is great given that I have rather limited skills.
    I have 3 questions, can someone refer me to resources:
    1. In the .env I have a new token which is not featured in the tutorial: ADMIN_JWT_SECRET - added it as well but what is it?
    2. Brayden mentioned that is not safe to leave the default keys from .env how are these suppose to be changed?
    3. Is there a storage config tutorial?

  • @TBARBL
    @TBARBL 2 года назад

    when i install via docker it always install version 3.6 of strapi..upgrade for some reason throws errors? Any fix?

  • @JaimitoAleman
    @JaimitoAleman 2 года назад

    What plugin do you recommend for the 3rd Party Asset Provider?
    Their Marketplace is lacking anything in that area.

  • @simonmoon6672
    @simonmoon6672 Год назад

    hi! thanks for the video! do u mind if i asked u a question? I followed ur instruction and now i have a little problem

  • @shivrajnag12
    @shivrajnag12 Год назад

    Hello Strapi please make a video Deploying Strapi on AWS, either using AWS AppRunner or Beanstalk.

  •  9 месяцев назад

    Does anyone knows how to make it work when you're only having the database in DO but the deployment elsewhere? how to handle the CERTIFICATE cause I keep getting an error with self sign certificate but is the one downloaded from DO

    • @Strapi
      @Strapi  7 месяцев назад

      If you want extra help, feel free to ask in our community on Discord discord.com/invite/strapi.
      We also have "Discord open office" hours from 12:30 PM CST, or you can find some helpful topics on our forum forum.strapi.io

  • @hakanaki
    @hakanaki 2 года назад

    I've done this like 8 times, and still get error: undefined on the logs 😭😭😭. Please does anyone know why this is happening ?

  • @ldstudio3044
    @ldstudio3044 2 года назад

    Hello team
    Thank you so much for this video.
    I would like to ask you a question regarding strapi please.
    After watching your video, I created a strapi project to keep user profiles (name and profile picture)
    I managed this project on a server from digitalOcean (paid plan).
    the app works great!
    but after a few hours strapi automatically erase my media type data (profile picture).
    Could you tell me if you have ever encountered this kind of problem please.
    Thank you beforehand.

  • @voloshin_a
    @voloshin_a Год назад

    Where can I find your current documentation?

  • @frankiejrey
    @frankiejrey Год назад

    What are the differences between deploying in a droplet and deploying in the app platform?

    • @ron-almog
      @ron-almog Год назад +1

      convenience vs price. app is more expensive, but more convenient. you don't have to set up ssl, and it is hooked to your git repo. droplet is a bare-bone machine. do what you like with it. a lot more work, and it is cheaper. also, in one droplet you can host multiple applications, databases, etc.

  • @voloshin_a
    @voloshin_a Год назад

    Is this a relevant video?
    I have a error: Missing auth.secret. Please set auth.secret in config/admin.js

  • @vladalexandrumeici1290
    @vladalexandrumeici1290 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!

    • @Strapi
      @Strapi  2 года назад

      @@vladalexandrumeici1290 Thank you for sharing, you know have to provide ADMIN_JWT_SECRET env variable in production.

  • @voxuanhoa1166
    @voxuanhoa1166 Год назад

    my project has data stored in strapi(back-end) and frontend uses react, i don't know how to deploy, someone help me

    • @Nice-sm5hr
      @Nice-sm5hr Год назад +2

      Ditch strapi and figure out another solution for the data/backend, that's whta I'm doing

    • @QElixir
      @QElixir 9 месяцев назад

      Do you have a better solution ? @@Nice-sm5hr

  • @rwlc
    @rwlc 2 года назад

    I WAS LOOKING FOR AN UPDATED ONE LFG

  • @JoelEbuka
    @JoelEbuka 2 года назад

    I'd legit appreciate one for Heroku

  • @joseantoniovr606
    @joseantoniovr606 Год назад

    there is not shown the process to get APP_KEYS!

    • @nested9301
      @nested9301 Год назад

      yeah yeah i notice that too mfs

  • @rizkiaprita
    @rizkiaprita 2 года назад

    is sqlite bad for production?
    why using postgree?

    • @ron-almog
      @ron-almog Год назад

      depends on how many users you anticipate. I hear that sqlite is getting better and can hold thousands of users. I guess if you aspire for millions, then choose something else.

  • @PavolZajicekXR
    @PavolZajicekXR 2 года назад

    Great tutorial, thanks! However after I run my strapi app and want to use Content-Type Builder, I cannot, it says: The autoReload feature is required to use this plugin. Start your server with `strapi develop`. Any way to fix this?

    • @bricenuzzo7747
      @bricenuzzo7747 2 года назад

      You can't use the Content-Type builder in production mode. Make your changes in your development environnement (local), on a develop branch for example, then push your changes on master and use the master on DigitalOcean

    • @PavolZajicekXR
      @PavolZajicekXR 2 года назад

      @@bricenuzzo7747 thanks! Can I access digital ocean's postgres db from my local dev environment?

    • @bricenuzzo7747
      @bricenuzzo7747 2 года назад

      @@PavolZajicekXR I dont see why you couldnt ! Use a soft like dbeaver and the production database credentials that you can find in your DO dashboard

  • @user-ix6qi2ft6m
    @user-ix6qi2ft6m Год назад

    Followed this. No longer works.

  • @truthteachers
    @truthteachers 2 года назад +4

    Hi, Sorry to give a negative feedback. Its up to you to accept and consider what they dump or shove aside as rubbish. PEOPLE MUST KNOW. Strapi looks good at the front but its documentation and process flows are disappointing. Even in your video. Its all skewed to your preference. DigitalOcean? What the hell is that??? Many of startups and small developers use shared hosting services with CPanel and Apache. So where is the step by step help on deploying this monolithic piece (my first look) for this environment. Yeah i know, there are lots of super geniuses out there who will say i dont know about this and that. The hell with them. If the software, documentation and tutorials cannot help a newbie than its good for nothing. We are a group who tried to use Strapi as headless cms but we soon realised how crappy it is. Even the development environment is so overloaded. Many of us felt that Codeigniter 4, with smallest footprint in the universe, can do a better job and much easier to learn. Even the deployment of CI4 is just zip file of the project and folders which are extracted into the root of the shared server. Vola, it works fantastic. I have tried all over the internet and could not get one document that teaches a step by step deployment instruction on how to deployment this piece into Shared Hosting using CPanel. Worse, i notice that nodejs may need to installed in the server too. OMG! What else? No wonder creator people need rubbish like Webpack, Docker etc to deploy applications. When you deliver software, please deliver solutions not problems and over dependencies in some other crappy tools. THESE ARE GENUINE FRUSTRATION OF SOLUTION DEVELOPERS!!! We are so tired of all the complicated and duplicated components each one of you create. Sigh!

    • @Nice-sm5hr
      @Nice-sm5hr Год назад

      Thank you

    • @nested9301
      @nested9301 Год назад

      they are doing it intentionally to sell their crappy cloud plan

  • @gbennett1000
    @gbennett1000 Год назад

    😒

  • @felixtechmedia
    @felixtechmedia 2 года назад

    Hello, great video! But I´m getting an error at the deploy phase throwing the following: Error: getaddrinfo ENOTFOUND ${db.HOSTNAME}