Skip to content

Commit 017083f

Browse files
committed
fix: switch from appwrite.json to appwrite.config.json
1 parent 6497464 commit 017083f

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/SDK/Language/CLI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ public function getFiles(): array
137137
],
138138
[
139139
'scope' => 'default',
140-
'destination' => 'scoop/appwrite.json',
141-
'template' => 'cli/scoop/appwrite.json.twig',
140+
'destination' => 'scoop/appwrite.config.json',
141+
'template' => 'cli/scoop/appwrite.config.json.twig',
142142
'minify' => false,
143143
],
144144
[

templates/cli/README.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $ iwr -useb {{ sdk.url }}/cli/install.ps1 | iex
6262
```
6363
Via [Scoop](https://scoop.sh)
6464
```powershell
65-
$ scoop install https://raw.githubusercontent.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/master/scoop/appwrite.json
65+
$ scoop install https://raw.githubusercontent.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/master/scoop/appwrite.config.json
6666
```
6767

6868
Once the installation completes, you can verify your install using

templates/cli/lib/commands/init.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const initProject = async ({ organizationId, projectId, projectName } = {}) => {
117117
}
118118
}
119119

120-
success(`Project successfully ${answers.start === 'existing' ? 'linked' : 'created'}. Details are now stored in appwrite.json file.`);
120+
success(`Project successfully ${answers.start === 'existing' ? 'linked' : 'created'}. Details are now stored in appwrite.config.json file.`);
121121

122122
if(answers.start === 'existing') {
123123
answers = await inquirer.prompt(questionsInitProjectAutopull);

templates/cli/lib/commands/push.js.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ const generateChangesObject = (attribute, collection, isAdding) => {
792792
return {
793793
key: `${chalk.yellow(attribute.key)} in ${collection.name} (${collection['$id']})`,
794794
attribute: attribute,
795-
reason: isAdding ? 'Field isn\'t present on the remote server' : 'Field isn\'t present on the appwrite.json file',
795+
reason: isAdding ? 'Field isn\'t present on the remote server' : 'Field isn\'t present on the appwrite.config.json file',
796796
action: isAdding ? chalk.green('adding') : chalk.red('deleting')
797797
};
798798

@@ -1094,7 +1094,7 @@ const pushSite = async({ siteId, async, code, withVariables } = { returnOnZero:
10941094
await Promise.all(sites.map(async (site) => {
10951095
let response = {};
10961096

1097-
const ignore = site.ignore ? 'appwrite.json' : '.gitignore';
1097+
const ignore = site.ignore ? 'appwrite.config.json' : '.gitignore';
10981098
let siteExists = false;
10991099
let deploymentCreated = false;
11001100

@@ -1109,7 +1109,7 @@ const pushSite = async({ siteId, async, code, withVariables } = { returnOnZero:
11091109
});
11101110
siteExists = true;
11111111
if (response.framework !== site.framework) {
1112-
updaterRow.fail({ errorMessage: `Framework mismatch! (local=${site.framework},remote=${response.framework}) Please delete remote site or update your appwrite.json` })
1112+
updaterRow.fail({ errorMessage: `Framework mismatch! (local=${site.framework},remote=${response.framework}) Please delete remote site or update your appwrite.config.json` })
11131113
return;
11141114
}
11151115

@@ -1417,7 +1417,7 @@ const pushFunction = async ({ functionId, async, code, withVariables } = { retur
14171417
await Promise.all(functions.map(async (func) => {
14181418
let response = {};
14191419

1420-
const ignore = func.ignore ? 'appwrite.json' : '.gitignore';
1420+
const ignore = func.ignore ? 'appwrite.config.json' : '.gitignore';
14211421
let functionExists = false;
14221422
let deploymentCreated = false;
14231423

@@ -1431,7 +1431,7 @@ const pushFunction = async ({ functionId, async, code, withVariables } = { retur
14311431
});
14321432
functionExists = true;
14331433
if (response.runtime !== func.runtime) {
1434-
updaterRow.fail({ errorMessage: `Runtime mismatch! (local=${func.runtime},remote=${response.runtime}) Please delete remote function or update your appwrite.json` })
1434+
updaterRow.fail({ errorMessage: `Runtime mismatch! (local=${func.runtime},remote=${response.runtime}) Please delete remote function or update your appwrite.config.json` })
14351435
return;
14361436
}
14371437

templates/cli/lib/commands/run.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const runFunction = async ({ port, functionId, withVariables, reload, userId } =
8585
};
8686

8787
drawTable([settings]);
88-
log("If you wish to change your local settings, update the appwrite.json file and rerun the 'appwrite run' command.");
88+
log("If you wish to change your local settings, update the appwrite.config.json file and rerun the 'appwrite run' command.");
8989
hint("Permissions, events, CRON and timeouts dont apply when running locally.");
9090

9191
await dockerCleanup(func.$id);

templates/cli/lib/utils.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function systemHasCommand(command) {
6060

6161
const checkDeployConditions = (localConfig) => {
6262
if (Object.keys(localConfig.data).length === 0) {
63-
throw new Error("No appwrite.json file found in the current directory. Please run this command again in the folder containing your appwrite.json file, or run 'appwrite init project' to link current directory to an Appwrite project.");
63+
throw new Error("No appwrite.config.json file found in the current directory. Please run this command again in the folder containing your appwrite.config.json file, or run 'appwrite init project' to link current directory to an Appwrite project.");
6464
}
6565
}
6666

0 commit comments

Comments
 (0)