create-ponder 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +0 -30
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -215,36 +215,6 @@ generated/`
|
|
|
215
215
|
const packageManager = await (0, import_detectPackageManager.detect)();
|
|
216
216
|
const runCommand =
|
|
217
217
|
packageManager === "npm" ? `${packageManager} run` : packageManager;
|
|
218
|
-
const renderYaml = `
|
|
219
|
-
# This file was generated by \`create-ponder\`. You can deploy your Ponder app
|
|
220
|
-
# by signing in to https://render.com, connecting this repository, and clicking Deploy.
|
|
221
|
-
|
|
222
|
-
services:
|
|
223
|
-
- type: web
|
|
224
|
-
name: ponder-app
|
|
225
|
-
env: node
|
|
226
|
-
buildCommand: ${packageManager} install
|
|
227
|
-
startCommand: ${runCommand} start
|
|
228
|
-
envVars:
|
|
229
|
-
- key: DATABASE_URL
|
|
230
|
-
fromDatabase:
|
|
231
|
-
name: ponder-db
|
|
232
|
-
property: connectionString
|
|
233
|
-
${ponderConfig.networks
|
|
234
|
-
.map(
|
|
235
|
-
(n) => ` - key: PONDER_RPC_URL_${n.chainId}
|
|
236
|
-
sync: false`
|
|
237
|
-
)
|
|
238
|
-
.join("\n")}
|
|
239
|
-
|
|
240
|
-
databases:
|
|
241
|
-
- name: ponder-db
|
|
242
|
-
postgresMajorVersion: 14
|
|
243
|
-
`;
|
|
244
|
-
(0, import_node_fs.writeFileSync)(
|
|
245
|
-
import_node_path.default.join(ponderRootDir, "render.yaml"),
|
|
246
|
-
import_prettier.default.format(renderYaml, { parser: "yaml" })
|
|
247
|
-
);
|
|
248
218
|
console.log(
|
|
249
219
|
import_picocolors.default.cyan("[create-ponder] ") +
|
|
250
220
|
`Installing using ${packageManager}`
|