Skip to content

Commit

Permalink
Update fly.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
typeofweb committed Apr 14, 2024
1 parent 9aaac8c commit 3c62382
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 29 deletions.
78 changes: 78 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# flyctl launch added from .gitignore
**/node_modules
**/.tmp
**/.idea
**/.DS_Store
**/.version
**/dist
**/.history

# Logs
**/logs
**/*.log
**/npm-debug.log*
**/yarn-debug.log*
**/yarn-error.log*

# Runtime data
**/pids
**/*.pid
**/*.seed
**/*.pid.lock

**/junit
**/test-results.xml

# Directory for instrumented libs generated by jscoverage/JSCover
**/lib-cov

# Coverage directory used by tools like istanbul
**/coverage

# nyc test coverage
**/.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
**/.grunt

# Bower dependency directory (https://bower.io/)
**/bower_components

# node-waf configuration
**/.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
**/build/Release

# Dependency directories
**/node_modules
**/jspm_packages

# Optional npm cache directory
**/.npm

# Optional eslint cache
**/.eslintcache

# Optional REPL history
**/.node_repl_history

# Output of 'npm pack'
**/*.tgz

# Yarn Integrity file
**/.yarn-integrity

# dotenv environment variables file
**/.env

**/package-lock.json
**/*.tsbuildinfo
**/grzesiu.js

# flyctl launch added from .husky/.gitignore
.husky/**/_

# flyctl launch added from .husky/_/.gitignore
.husky/_/**/*
fly.toml
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
console.log(process.versions);
// MyDevil Hack
require('./dist/src/index.js');
5 changes: 0 additions & 5 deletions deploy.sh

This file was deleted.

51 changes: 28 additions & 23 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
# fly.toml file generated for typeofweb-discord-bot on 2022-09-03T23:58:37+02:00
# fly.toml app configuration file generated for typeofweb-discord-bot-fragrant-wind-7657 on 2024-04-13T22:58:23-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "typeofweb-discord-bot"
primary_region = "waw"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
kill_timeout = "5s"

[experimental]
auto_rollback = true

[build]
builder = "heroku/buildpacks:20"
builder = "heroku/builder:22"

[env]
PORT = "8080"

[experimental]
allowed_public_ports = []
auto_rollback = true

[[services]]
http_checks = []
protocol = "tcp"
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"

[[services.ports]]
force_https = true
handlers = ["http"]
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
handlers = ["tls", "http"]
[[services.ports]]
port = 443
handlers = ["tls", "http"]

[[services.tcp_checks]]
grace_period = "1s"
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20

[[services.tcp_checks]]
interval = "15s"
restart_limit = 0
timeout = "2s"
grace_period = "1s"

[[vm]]
memory = "512mb"
cpu_kind = "shared"
cpus = 1

0 comments on commit 3c62382

Please sign in to comment.