How to deploy Vendure (headless commerce) together with Strapi CMS on Heroku? - heroku

I'm trying to deploy a webapp to Heroku. The current stack is build out of:
NextJS for the frontend (deployed on Vercel)
Strapi CMS (deployed on Heroku)
I would love to add a webshop to the webapp and would love to use the example from Vercel/commerce (https://github.com/vercel/commerce). I have selected Vendure as my favorite headless commerce provider.
I have a problem figuring out how to deploy Vendure on Heroku-platform. Is it possible to combine both Strapi and Vendure on only one Heroku app? Can both programs work together? I would think it's possible because both can work with PostgresDB.
I've read this documentation (https://www.vendure.io/docs/developer-guide/deployment/) but this doesn't speak about Heroku and the combination with Strapi.
I know my way with NextJS / Javascript / HTML, but my knowledge of the backend and deployment is not as good.
Thanks in advance for helping me out.
Greetings,
Bruno

You could take a look for inspiration/pointers at the vendure/vendure-demo repo, it is deployed using dokku, which is a nice FOSS heroku-like deployment app for your VPS or Server.
If you want, you could use it's Dockerfile for running it in heroku likewise or whatever dokcker compatible provider you might choose, just remove the -demo- parts you don't need about it.
I also have successfully deployed vendure and commerce with CapRover. Can recommend it a lot!
Which is like dokku but with a nicer webapp GUI/Installation. If you go the dokku route you have ledokku for a GUI too. Not so polished though.

Related

Question about deploying a Shopify app to Heroku

I have question about Shopify app development and the deployment process.
I've used the getting started guide here, and I have an app that works fine when I use npm run dev and view the app in the store admin.
However, of course, once I stop the server from running, the app is no longer accessible.
I believe I need to deploy the app to Heroku (or something similar) in order to have it work in a non-development environment.
It doesn't seem like there is much guidance online from Shopify about the best way to go about this.
Does anyone know what steps I need to take in order to deploy my app to Heroku, so that I can use the app in by test store on another device?
It seems like every guide online stops JUST BEFORE explaining this process and I can't figure out why! I have tried everything online but nothing has worked:
Adding the code to Github and connecting it to Heroku
Using Docker
Any help is appreciated. Thank you!
You have zero obligations to use Heroku. If you have an IP address dedicated to your house, you could host the App using your house. If you co-locate your own server at an Internet business, and they give you IP addresses you can use that. If you wanted to use Amazon directly, you could use EC2. If you wanted to use Linode, or Azure, or any other cloud service, feel free! It is up to you!
Using Heroku (built on AWS) is traditional only in the sense that it is the original easy peasy hosting in the cloud service. Play with Heroku by reading Heroku-specific documentation or hosting information. This has nothing to do with Shopify. Shopify only mentions Heroku because traditionally, developers used it. No other reason.
If you want to learn how to use Heroku, 100% there are blog posts within easy reach for you to study and learn from.

Deploy a laravel project on firebase

I have a laravel project which uses sqlite. I want to publish this application to firebase but i dont want to use the database of firebase. Because my tables have been populated already and relationship between them. I know how to publish a static content website on there, but i couldn't find any source about this.
I mean, of course there are a lot of tutorial, article about how to deploy laravel on firebase via using Kreait. But as i mention, i dont want to use firebase realtiem database.
Actually i dont have any idea its possible or not with sqlite. Is it possible to publish a laravel application on firebase hosting with sqlite? Or is it a must?
Im just new to firebase. So i may be missing something on to understand the concept of it.
Firebase hosting is a host for static websites
Firebase hosting does not support any server side scripts such as Ruby, PHP, Python or anything else that is processing your files before output. That would require a application engine such as Google App Engine, Heroku, or similar. The hosting service is a static website hosting service.

Deploy Aurelia JSPM and TypeScript to Heroku?

I'm trying to deploy the Aurelia-typescript skeleton to Heroku and have been struggling. There are lots of random suggestions online and in Heroku about different configuration settings and gulp settings, but Heroku always gives app errors. I'm still banging on it, but if anyone has done this and had a list of the steps they took or a link to a blog that gives a breakdown of the steps, then it would be much appreciated. :-)
Heroku is an excellent platform for developing server-side web applications, but not so great at hosting static sites, according to this blog post: http://divshot.com/blog/hosting/dont-host-static-sites-on-heroku.
Aurelia applications are just static websites. If it's a small site, try deploying it to GitHub Pages. If it's a larger site, try using an s3 container. I've written a brief article on how to deploy to GitHub Pages here: http://davismj.me/blog/deploy-to-gh-pages.

Are there any tutorials for putting an app on Heroku

I have my app fully deployed for free at https://blooming-summer-8571.herokuapp.com/ but want to start paying for hosting for my own custom domain. I have also bought a domain name that I want to put my app on. What are the best resources or even google search key words that will help me do this through heroku?
Your best bet is to go through the heroku dev center located at:
https://devcenter.heroku.com/
There are topics from the very basics to more advanced ones. You're looking for the custom domain setup, instructions for which can be found here: https://devcenter.heroku.com/articles/custom-domains

How do you run utility services on Heroku?

Heroku is fantastic for prototyping ideas and running simple web services, I often use it to run Python web services like Flask and Django and try out ideas. However I've always struggled to understand how you can use the infrastricture to run those amazingly powerful support or utility services every startup needs in its stack. 4 exmaples of services I can't live without and would recommend to any startup.
Jenkins
Statsd
Graphite
Graylog
How would you run these on Heroku? Would it be best just getting dedicated boxes (Rackspace, e.t.c) with these support services installed.
Has anyone one run utility deamons (services) on Heroku?
There are two basic options. The first is to find or create a Heroku addon to accomplish the task. For example, there are many hosted logging solutions you can use instead of Graylog; Rails on Fire or Travis can be used instead of Jenkins. If an appropriate addon doesn't exist, you can effectively make your own by just running the service on an AWS EC2 instance.
The other alternative is to push the service into being a 12factor application so that it can run on Heroku as well. For example, you could stub out whisper's filesystem calls so that they store in a backing service instead. This is often pretty painful and brittle, though, unless you can get your changes accepted by the upstream maintainers.
you could also use another free service in conjunction with it. OpenShift has a lot of Java related build services and tools that can be added.
I am using a mix of heroku, openshift, mongolab and my own web hosting. Throw in dropbox and box for some space...

Resources