Skip to content

Commit 8b7a793

Browse files
authored
Merge pull request #46 from ItzNotABug/45-remove-debug-config
Fix: #45
2 parents 2cba5dc + e97504f commit 8b7a793

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

.dockerignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ tailwind.config.js
2727
public/styles/tailwind.css
2828

2929
# installer
30-
docker-install.sh
30+
docker-install.sh
31+
32+
# local, debug config files
33+
configuration/config.debug.json
34+
configuration/config.local.json

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ node_modules
1818

1919
# debug configuration
2020
configuration/config.debug.json
21+
configuration/config.local.json
2122

2223
# custom template used for tests
2324
custom-template.ejs

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ Now as soon as you publish your Post, it will be sent to your Subscribers who ha
110110

111111
### Testing Configurations
112112

113-
Ghosler defaults to using a debug configuration file, `config.debug.json`, if it exists. The structure of this file is
113+
Ghosler defaults to using a local configuration file, `config.local.json`, if it exists. The structure of this file is
114114
identical to that in [config.production.json](./configuration/config.production.json) file.
115115

116+
**Note: `config.local.json` should be placed inside the `configuration` directory.**
117+
116118
**Local Builds:**
117119
Make sure to execute -
118120

@@ -158,7 +160,8 @@ cloudflared tunnel --url http://localhost:2369
158160
```
159161

160162
This command will initialize a tunnel and return a URL that you can use to test.\
161-
For more info, see - [TryCloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/).
163+
For more info,
164+
see - [TryCloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/).
162165

163166
### Custom Template
164167

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ghosler",
33
"description": "Send newsletter emails to your members, using your own email credentials!",
4-
"version": "0.95",
4+
"version": "0.96",
55
"private": true,
66
"main": "app.js",
77
"type": "module",

utils/data/configs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ export default class ProjectConfigs {
290290
static async #getConfigFilePath() {
291291
const __dirname = path.dirname(fileURLToPath(import.meta.url));
292292

293-
// TODO: this change would require a migration via ghosler-cli.
294-
const debugConfigPath = path.resolve(__dirname, '../../configuration/config.debug.json');
293+
const debugConfigPath = path.resolve(__dirname, '../../configuration/config.local.json');
295294
const prodConfigPath = path.resolve(__dirname, '../../configuration/config.production.json');
296295

297296
try {

0 commit comments

Comments
 (0)