Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick80 committed Feb 18, 2024
1 parent 47523f4 commit 4b12a89
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion other/litefs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lease:

consul:
url: '${FLY_CONSUL_URL}'
key: 'epic-stack-litefs/${FLY_APP_NAME}'
key: '${FLY_APP_NAME}/primary'

exec:
- cmd: node ./other/setup-swap.js
Expand Down
5 changes: 3 additions & 2 deletions other/setup-swap.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { writeFile } from 'node:fs/promises'
import { $ } from 'execa'
import $ from 'execa'

console.log('setting up swapfile...')
await $`fallocate -l 512M /swapfile`
Expand All @@ -10,4 +10,5 @@ await $`mkswap /swapfile`
await writeFile('/proc/sys/vm/swappiness', '10')
await $`swapon /swapfile`
await writeFile('/proc/sys/vm/overcommit_memory', '1')
console.log('swapfile setup complete')
console.log( 'swapfile setup complete' )

2 changes: 2 additions & 0 deletions remix.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
cacheDirectory: './node_modules/.cache/remix',
ignoredRouteFiles: ["**/.*"],
tailwind: true,
serverPlatform: "node",
serverModuleFormat: "esm",
serverDependenciesToBundle: [/^remix-utils.*/,/^remix-auth-totp.*/],
// appDirectory: "app",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"target": "ES2022",
"module": "ES2022",
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
},

"allowImportingTsExtensions": true,
// Remix takes care of building everything in `remix build`.
"noEmit": true
}
Expand Down

0 comments on commit 4b12a89

Please sign in to comment.