How to Host Your Shopify App STEP BY STEP | Fly.io, Heroku, and DigitalOcean

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • In this video we'll cover how to host your Shopify app using 3 popular hosting options: Fly.io, Heroku, and DigitalOcean.
    Get a $200 credit for DigitalOcean when you sign up with my link: m.do.co/c/7c776f49302b
    Fly.io: fly.io/
    Heroku: www.heroku.com/
    Please let me know in the comments down below if you have any questions or run into any problems while following along in the video, I'd love to help out in any way I can. Feedback and constructive criticism is also highly appreciated!
    And don't forget to follow me on Twitter! / devwithalex
    📕 Chapters
    -------------------------
    0:00 Intro
    0:42 Create new app with CLI
    3:24 Fly.io hosting
    11:24 Heroku hosting
    20:22 Digital Ocean hosting
    26:13 Outro
    🔗 LINKS
    -------------------------
    Fly.io: fly.io/
    Heroku: www.heroku.com/
    Digital Ocean ($200 signup credit [Affiliate Link]): m.do.co/c/7c776f49302b
    Create a Shopify app through the CLI:
    shopify.dev/docs/apps/getting...
    Shopify docs for hosting + deploying app:
    shopify.dev/docs/apps/deploym...
    Shopify Devs Discord (I'm in there!):
    / discord
    ✉️ INQUIRIES
    -------------------------
    Email: contact@devwithalex.com
    Twitter: / devwithalex
    🙋🏽‍♂️ About Me
    -------------------------
    Hi there! My name is Alex and I have been programming (mostly self-taught) for over 4 years now. Programming has changed my life for the better, and I am on a mission to share my knowledge with you so that you can reap the rewards of a satisfying and fulfilling career in software development. My favorite thing about software development is that you are constantly learning, and I want to share the things I learn with you! I am always looking for ways to improve and new things to learn, so feel free to reach out or leave a comment letting me know where I can improve or if I should cover a specific topic!
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 75

  • @jinsy_
    @jinsy_ ปีที่แล้ว +1

    This is awesome! The perfect tutorial! Nice work !!

  • @halogenic
    @halogenic ปีที่แล้ว

    Thank you! This is just what I needed.

  • @charliebla12
    @charliebla12 ปีที่แล้ว

    Goat 🐐 I was waiting for this!

  • @wilmerramirez3631
    @wilmerramirez3631 8 หลายเดือนก่อน

    Bro your content is so awesome and the way you teach is great. I just wish we had content more oftenly, or even a Shopify App development course somewhere.. I'd be more than happy to follow you all along.

  •  ปีที่แล้ว

    Thanks for this great tutorial!

  • @muhammadumair9743
    @muhammadumair9743 ปีที่แล้ว +1

    Your content is adding value to my life, I see every video of your channel 👍🏻

    • @devwithalex
      @devwithalex  ปีที่แล้ว +1

      Very glad to hear that, thank you for watching!

  • @icestoregroup
    @icestoregroup 10 หลายเดือนก่อน

    Excellent hosting tutorial !! thank you

  • @MS-de1it
    @MS-de1it ปีที่แล้ว

    First! Awesome Alex!

    • @devwithalex
      @devwithalex  ปีที่แล้ว +1

      Thanks for watching :)

  • @philipbeauford
    @philipbeauford 11 หลายเดือนก่อน

    My man, great video!.. btw for any windows users I had to first use “flyctl” instead of “fly” for first commands.. then also had to install via chocolatey to see/use flyctl cmd in my Shopify app directory

  • @yoanngasque9360
    @yoanngasque9360 ปีที่แล้ว

    thank's for this video it's very useful and well explained

  • @archiee1337
    @archiee1337 ปีที่แล้ว +2

    Another great tutorial man! I'm particularly interested in payments, tiers etc - will you do a video on that?

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      Yep, I'll add it to my list! Thanks for the suggestion

  • @amazondaipu1102
    @amazondaipu1102 ปีที่แล้ว

    Keep the good content coming

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      Will do, thanks for watching!

  • @dennyraymond7505
    @dennyraymond7505 ปีที่แล้ว +1

    Thanks for the tutorial! Can you do the deploy for public apps too, so it can install by multiple store? That would be awesome, Best.

  • @pavloskuibida6292
    @pavloskuibida6292 8 หลายเดือนก่อน

    Thx a lot!!!

  • @user-xg3ch1tr3s
    @user-xg3ch1tr3s ปีที่แล้ว

    Thanks for the tutorial, specially the one from DO, if you have an example of using databases and how the session storage management is, that would be awesome. Best.

    • @sajidmasood5304
      @sajidmasood5304 11 หลายเดือนก่อน

      Dear Please reply on this. I'm getting database connection issue

  • @turokhunter22
    @turokhunter22 ปีที่แล้ว +1

    Awesome, This was really helpful for getting my custom app running. A video suggestion: I haven't been able to find anything on the admin links extension. How do you get admin links from a product detail page to properly direct to your custom app's product page?

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      I'll add that to my video list! I haven't done much with admin links so I'll do a bit of research and cover that soon

  • @leonide2906
    @leonide2906 11 หลายเดือนก่อน

    Thank you for your video. But what about the database and user authentication ? AWS, for example, included a lot of tools so that we do not have to manage these features (DynamoDB, AppSync, Cognito, Amplify, ...).

  • @jtsverse8220
    @jtsverse8220 6 หลายเดือนก่อน

    This is awesome man, following those steps are easy. I just had one problem with the digital ocean where I kept on getting a "deploment failed" along the process. I tried deploying a freshy installed shopify remix app (latest one) but still got same error. Can you somehow show me how to do it in the latest shopify remix? Thanks a lot.

  • @user-nf5li8ot5n
    @user-nf5li8ot5n 4 หลายเดือนก่อน

    Hello Alex, THank for your video..
    One question, they are differences between app deployment and app proxy?

  • @user-nj8cq1or3g
    @user-nj8cq1or3g 4 หลายเดือนก่อน

    Thanks Alex for the tutorial. Can you make a video about using FlyIO persistent volume to store the Shopify database?

    • @user-ls2vz3pg3v
      @user-ls2vz3pg3v 4 หลายเดือนก่อน

      and how to replicate/keep synched the db.... Flyio suggests to deploy 2 VM per app with a volume attached to each (in case one VM goes down, the other continues serving the app .. and the db).

  • @jwk05003
    @jwk05003 ปีที่แล้ว +1

    Thank you. I used the same node template and deployed on Heroku. How can I now view the contents of the root>web>database.sqlite file that the template writes user login to? Thanks!

  • @NehaD-ri9gv
    @NehaD-ri9gv หลายเดือนก่อน

    This is helpful tutorial! Do you have any documentation or tutorial for How to deploy remix app with Extension, is it possible to use same domain for multiple shopify partner if yes then how can i achieve that?

  • @user-pi5bi1tn8d
    @user-pi5bi1tn8d ปีที่แล้ว

    Hi Alex,
    I have a question, Which hosting provider is easy and scalable support to the Shopify node app using CLI3.

  • @nguyetem0208
    @nguyetem0208 11 หลายเดือนก่อน

    Hi Alex, could you continue this video with deploy/release extension? I followed your ways to deploy to digital ocean, it works like you did but I when I do checkout to verify the extension it doesn't appear. I checked on console saw an error related private access token(401 status code). Thank you very much

  • @user-yw9kj1jl8d
    @user-yw9kj1jl8d 6 หลายเดือนก่อน

    Hi, Alex how do host the Shopify custom app on it "Shopify App Store" and install it on a different partner website?

  • @karimpanacci
    @karimpanacci ปีที่แล้ว

    Hi, I need to develop an app that will be private, that is, aimed only at my customers and the billing takes place outside of shopify, but the app will be the same for everyone, I don't want to put it in the app store, but I saw that you can no longer make private apps aimed at multiple shopify stores, but only custom apps valid for a single Shopify store...
    Should I keep the frontend and backend source code in common and create an app for each store I need to install it on?

  • @nihalmalik7546
    @nihalmalik7546 4 หลายเดือนก่อน

    i have a question can i use this DO account as multiple projects like i have a shopify app and a different node project as well, or this is only for shopify apps

  • @igetpaidtocode
    @igetpaidtocode ปีที่แล้ว

    Yes awesome! Is there something specific for php to be done?

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      I haven’t tried with PHP, but since we’re setting up the hosting from the dockerfile (which is included on all templates) it should be exactly the same!

  • @pravinchhasatiya7607
    @pravinchhasatiya7607 4 หลายเดือนก่อน

    Can you please create a video for deploymen on AWS server using Docker ?

  • @arifurrahman5993
    @arifurrahman5993 ปีที่แล้ว

    Thank you for your tutorial. What you suggest for app with mongo db. Will digital ocean offer that or need to use mongo db cluster
    Thank you

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      I personally don't use MongoDB but DigitalOcean does have database hosting, including Mongo
      www.digitalocean.com/products/managed-databases

  • @MachHoang-ru7qs
    @MachHoang-ru7qs ปีที่แล้ว

    10 Points

  • @VanNguyen-cr6ns
    @VanNguyen-cr6ns 12 วันที่ผ่านมา

    Can we integrate with cloudfront to speed up perf?

  • @majia9158
    @majia9158 9 หลายเดือนก่อน

    Very helpful. Are you interested in making videos about app extensions and metafields?

    • @devwithalex
      @devwithalex  8 หลายเดือนก่อน +1

      Yep, will be adding those in my app build videos

  • @sanjeevvishwakarma8055
    @sanjeevvishwakarma8055 8 หลายเดือนก่อน

    How can i host my post purchase app on AWS server? Please answer 🙏

  • @MS-de1it
    @MS-de1it ปีที่แล้ว

    Alex, after you deploy your app to Digital Ocean how do you manage the version that will ultimately by "the prod version" and the version that you keep developing? Using git branches, I suppose?

    • @MS-de1it
      @MS-de1it ปีที่แล้ว

      Do you recommend using a deployment tool like Capistrano to push your changes to Digital Ocean (and manage versions)?

    • @devwithalex
      @devwithalex  ปีที่แล้ว +1

      You'll need to create a new app in the Shopify admin, so you'll have the original one that is the production version and is hosted on Digital Ocean or other platform, and then another app that runs off the same codebase but you'll use it locally for development (and that codebase of course can have different branches you'll use locally). If you wanted to host a staging environment or something as well, then you can just create a new project in Digital Ocean, hook it up to the same repo but have it run off of a different git branch such as "stage" or something. So if you want to update prod, push your changes to "main". If you want to update the staging environment, push your changes to "stage" branch, etc. As far as I know that's the simplest way to manage environments, I'm planning a video that will go over all that as well.

    • @devwithalex
      @devwithalex  ปีที่แล้ว +1

      @@MS-de1it I've never used it, but extra tools aren't necessary here for managing environments. It might be different if you have a very large app but for most people the solution in my other comment will be completely fine

  • @user-vf3ju9gz3t
    @user-vf3ju9gz3t 3 หลายเดือนก่อน +1

    I am developing a custom app for our store. This will not be made public and atm I have installed this via a distribution link. Do I have to hose my app under these circumstances?

    • @akshuvo
      @akshuvo 2 หลายเดือนก่อน

      Yes unless the app is theme extension only

  • @MultiChinmay
    @MultiChinmay 5 หลายเดือนก่อน

    hi, I keep getting "ruby environment not found" error. I am not sure if I am doing something wrong. Can you please help me? May be my docker file is not correct.

  • @SriRam-yy1iq
    @SriRam-yy1iq 2 หลายเดือนก่อน

    Can you explain how to host the shopify app using cloudflare pages

  • @user-mz8pr4rc6o
    @user-mz8pr4rc6o ปีที่แล้ว

    HI I want to deploy my app on a Ubuntu or VPS server Can you guide me through the steps involved in deploying my app on a Ubuntu server.i don't find any solution when i try to deploy it using CLI it will ask me to login in to Ubuntu you cant open the login page in another tab I am stuck here i hope you understand my question

  • @amitganuwala
    @amitganuwala 3 หลายเดือนก่อน

    Hello Bro, previous app was live but it's gettting port
    error now.

  • @MuhammadAli-ci7qp
    @MuhammadAli-ci7qp หลายเดือนก่อน

    when i add create command i get this Couldn't find that stack.

  • @Yash-Yaram
    @Yash-Yaram 9 หลายเดือนก่อน

    how can we host shopify app in AWS Server.????????????????

  • @MachHoang-ru7qs
    @MachHoang-ru7qs ปีที่แล้ว

    Could you guide deploy on Linux or something? Please
    Thank you very much

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      I can for sure add that to my list of things to cover, I wouldn't recommend it for most people though since there's more manual work involved and of course more maintenance so using a platform like in the video would be a much best option for most people!
      In the meantime, here's an article I've actually used before covering this: medium.com/@chris.geelhoed/how-to-deploy-node-js-shopify-apps-to-digital-ocean-4b2350840080

    • @MachHoang-ru7qs
      @MachHoang-ru7qs ปีที่แล้ว

      @@devwithalex If you have a video about this installation in linux please let me know. I will check the link you sent me. Thank you so much Alex.

  • @AbhimanyuArora-df5yb
    @AbhimanyuArora-df5yb 22 วันที่ผ่านมา

    Hi is there any possibility that we can host the app on our own server like godaddy or hostinger

    • @devwithalex
      @devwithalex  19 วันที่ผ่านมา

      Yep, it's possible to deploy an app on pretty much any server platform

    • @AbhimanyuArora-df5yb
      @AbhimanyuArora-df5yb 18 วันที่ผ่านมา

      @@devwithalex Would you make a shrt video on how we can do it, also I facing to get api scope on checkout page.

  • @bligoubloups3899
    @bligoubloups3899 ปีที่แล้ว

    Hello, I'm trying to run the dockerfile locally but with no success.
    I've this error: Cannot initialize Shopify API Library. Missing values for: apiKey, apiSecretKey, hostName, scopes
    So I've modified my shopifyApp() but I don't understand what I sould put in the hostName field.
    My app could run on any shopify shop so I don't understand.
    Thank you for your help.

    • @devwithalex
      @devwithalex  ปีที่แล้ว

      If you're running your app locally, you should be using the `npm run dev` command in the terminal and not trying to run the dockerfile locally. `npm run dev` will auto populate any environment variables and update the hostname automatically and just make your life so much easier. When you're hosting on a platform and are running off a dockerfile thats where you need to add those env vars manually like in the video.

    • @asiffaiz3202
      @asiffaiz3202 ปีที่แล้ว

      @@devwithalex i am facing similar issue while hosting on a platform please i am running `npm run build` command and also update URLs in app setting but nothing working i dont know what i am missing in this process

    • @priyankagadhiya6714
      @priyankagadhiya6714 ปีที่แล้ว

      ​@asiffaiz3202 have you got any solution?? I am facing the same issue

  • @AhsanAhmed-ll6ly
    @AhsanAhmed-ll6ly หลายเดือนก่อน

    Hi,
    I'm trying to host my Shopify App on Heroku everything perfectly preform action but last things I'll check URL then Heroku showing error Please guide me how can solve this error
    Application error
    An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
    heroku logs --tail

  • @Yash-Yaram
    @Yash-Yaram 9 หลายเดือนก่อน +1

    how can we host shopify app in AWS Server.????????????????