All Projects → oof-bar → craft-heroku

oof-bar / craft-heroku

Licence: other
🍄 Craft 3, ready for continuous deployment to Heroku.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
Batchfile
5799 projects
HTML
75241 projects
Procfile
174 projects

Projects that are alternatives of or similar to craft-heroku

heroku-buildpack-tex
A Heroku buildpack to run TeX Live inside a dyno.
Stars: ✭ 18 (+12.5%)
Mutual labels:  heroku
phx-auth-api
Authentication for Phoenix with JWT, user privileges and CI
Stars: ✭ 13 (-18.75%)
Mutual labels:  heroku
keycloak-heroku
Deploy Keycloak to Heroku using a slightly adapted version of the official docker image
Stars: ✭ 47 (+193.75%)
Mutual labels:  heroku
books-store
A Simple Web application to use flask python web framework.
Stars: ✭ 23 (+43.75%)
Mutual labels:  heroku
snipcart-craft-plugin
Craft e-commerce in a day.
Stars: ✭ 20 (+25%)
Mutual labels:  craft3
Marketplace-App
Find Spelling errors in files within PRs
Stars: ✭ 47 (+193.75%)
Mutual labels:  heroku
tyr
A CLI to generate node.js applications in an opinionated way.
Stars: ✭ 28 (+75%)
Mutual labels:  heroku
craft-3
Boilerplate with Craft CMS, Tailwind CSS, VueJS & Alpine.js used for internal projects.
Stars: ✭ 34 (+112.5%)
Mutual labels:  craft3
nine-cards-backend
An Open Source Android Launcher built with Scala on Android
Stars: ✭ 61 (+281.25%)
Mutual labels:  heroku
TgTwitterStreamer
Continous Integration from Twitter to Telegram.
Stars: ✭ 55 (+243.75%)
Mutual labels:  heroku
seomate
SEO, mate! It's important. That's why SEOMate provides the tools you need to craft all the meta tags, sitemaps and JSON-LD microdata you need - in one highly configurable, open and friendly package - with a super-light footprint.
Stars: ✭ 31 (+93.75%)
Mutual labels:  craft3
SPaaS
A Simple-PaaS similar to Heroku
Stars: ✭ 18 (+12.5%)
Mutual labels:  heroku
query
Run SQL queries as an admin from the Craft CMS control panel.
Stars: ✭ 14 (-12.5%)
Mutual labels:  craft3
heroku-flask-template
A simple, fast and easy-to-deploy Heroku ready flask web app template written in Python.
Stars: ✭ 26 (+62.5%)
Mutual labels:  heroku
phoenix example
An example Phoenix app with one-click deployments to different cloud services.
Stars: ✭ 62 (+287.5%)
Mutual labels:  heroku
haikunatorjava
Generate Heroku-like random names to use in your Java applications
Stars: ✭ 27 (+68.75%)
Mutual labels:  heroku
craft-connect
Allows you to connect to external databases and perform db queries
Stars: ✭ 16 (+0%)
Mutual labels:  craft3
craft-plugin-patrol
Patrol for Craft 3
Stars: ✭ 28 (+75%)
Mutual labels:  craft3
WordNook
Dynamically updating blogging website to upload articles and blog posts on various topics, developed using ejs template engine and node js in the backend.
Stars: ✭ 80 (+400%)
Mutual labels:  heroku
middleman-startae
A starter template ready to run on Netlify or Heroku. Comes with several helpers, partials and a nice basic structure to the HTML, Sass, Webpack and ES2015. Bottom line, a template that uses all the modern tools.
Stars: ✭ 43 (+168.75%)
Mutual labels:  heroku

Craft 4 on Heroku

Craft 4 is a PHP application based on Yii2, and is installed via Composer.

This means that it’s well-suited for deployment to cloud-based platforms like Heroku. In this case, we’ve put together a barebones starter-kit for running a Craft application on Heroku.

There are a couple of limitations, here, that are important to note if it’s your first time using Heroku:

  1. The filesystem is ephemeral. This means that anything you store on your running Dynos is considered disposable—so, if you want to persist data (like user uploads), you’ll have to use a cloud-based storage service like Amazon S3 or Google Cloud Storage.
  2. Assume the app will scale. Design your formation and configuration assuming that you’ll (eventually) be running more than a single process. Your database, sessions, and shared caches should all be kept in a common location—but Heroku will help with this through “Addons,” configured with this app.json.
  3. Logs are streams. Any logging that ends up in a file is as good as gone. There might be some clever workarounds here, but since the purpose of this repo is to demonstrate compatibility with first-party Heroku tools, Craft is configured to log to php://stdout and php://stderr, so the logs can be “Drained” anywhere you like.

Read more about 12-factor app architecture—the underlying principles of the Heroku platform.

It’s also worth mentioning: The traditional “queue” is handled here by a worker Dyno. In order to run the app locally, you’ll need to spin up a queue daemon to ensure your jobs are taken care of:

./craft queue/listen --verbose

☝️ This is the same worker command you see in the Procfile in the project's root! It’ll get booted alongside your web Dyno.

On Nitro, it's even simpler:

nitro queue

Setup

Just click this button to set up your first app!

Deploy to Heroku

This script does a few things:

  1. Creates a new “app” in your Heroku account;
  2. Provisions addons (Redis and Postgres);
  3. Helps set up required Config Vars;
  4. Performs an initial build, including the installation of Composer dependencies;
  5. Configures Dyno formation (with two web processes and one worker);
  6. Redirects you to the Craft 4 installation screen.

You might encounter some visual issues with the installation process—this is because the cpresources that this process moves into the public web root happens on a Dyno-by-Dyno basis, and the initial request for the installation page is not apt to have been hit on both servers—but susequent requests for those assets could still be served by another dyno. Refresh the page a few times, and both dynos will begin to warm their cpresources.

Local Development

But what about the road to production? This repo is designed to work seamlessly with Craft's first-party development environment, Nitro.

Install Nitro, clone the project, and run $ nitro add craft-heroku. For more information, please refer to the Nitro documentation.

🌳

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].