https://github.com/elenaches/deploy-app--code-examples
A comprehensive guide on deploying and setting up CI/CD for a Node JS app on Fly.io, includes a step by step guide, along with Dockerfile and Fly.io configuration example files.
https://github.com/elenaches/deploy-app--code-examples
app-deploy app-deployment-config ci-cd deploy deployment docker dockerfile dockerfile-examples flyctl flyio github-actions nodejs toml-configuration yml-configuration
Last synced: 8 months ago
JSON representation
A comprehensive guide on deploying and setting up CI/CD for a Node JS app on Fly.io, includes a step by step guide, along with Dockerfile and Fly.io configuration example files.
- Host: GitHub
- URL: https://github.com/elenaches/deploy-app--code-examples
- Owner: ElenaChes
- License: mit
- Created: 2025-01-02T21:57:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T23:21:00.000Z (over 1 year ago)
- Last Synced: 2025-03-16T01:25:35.130Z (about 1 year ago)
- Topics: app-deploy, app-deployment-config, ci-cd, deploy, deployment, docker, dockerfile, dockerfile-examples, flyctl, flyio, github-actions, nodejs, toml-configuration, yml-configuration
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploy App: code examples
A comprehensive guide on deploying and setting up CI/CD (Continuous Integration & Continuous Delivery) for a Node JS app on [Fly.io](https://fly.io/).
Description: includes a step by step guide, along with Dockerfile and Fly.io configuration example files.
> [!NOTE]
> While these files were written and are used specifically for Node JS apps and for deploying specifically on fly.io, they can serve as an example or template for other types of apps and hosting services too.
Content
- [Dockerfile examples](/Dockerfile%20examples)
- [Dockerfile_generic](/Dockerfile%20examples#dockerfile_generic)
- [Dockerfile_puppeteer](/Dockerfile%20examples#dockerfile_puppeteer)
- [.dockerignore](/Dockerfile%20examples#dockerignore)
- [Deploying on Fly.io](/Deploying%20on%20Fly.io)
- [Installing flyctl](/Deploying%20on%20Fly.io#installing-flyctl)
- [Launching on Fly.io](/Deploying%20on%20Fly.io#launching-on-flyio)
- [Secrets](/Deploying%20on%20Fly.io#secrets)
- [fly.toml](/Deploying%20on%20Fly.io#flytoml)
- [Continuous deployment on Fly.io](/Deploying%20on%20Fly.io#continuous-deployment-on-flyio)
- [Get a fly token](/Deploying%20on%20Fly.io#get-a-fly-token)
- [Github actions](/Deploying%20on%20Fly.io#github-actions)
- [fly.yml](/Deploying%20on%20Fly.io#flyyml)
- [More relevant documentation](/Deploying%20on%20Fly.io#more-relevant-documentation)
- [App structure](#appstructure)
# Docker examples
Contains examples of working `Dockerfiles` and some context on what type of apps they're used by.
([Go to readme](/Dockerfile%20examples))
# Deploying on fly.io
Step by step description of the process from deciding to deploy an app on Fly.io and to having a deployed app, alongside an explanation on setting up CI/CD using Github actions.
Also contains examples of working `fly.toml` and `fly.yml` files and explanations of their contents.
([Go to readme](/Deploying%20on%20Fly.io))
# App structure
Here's a visual representation of how a structure using these file examples would look in an actual Node JS app:
```
app/
├── .github/
│ └── workflows/
│ └── fly.yml
├── node_modules/
├── .dockerignore
├── .gitignore
├── Dockerfile
├── fly.toml
├── index.js
├── package-lock.json
├── package.json
```