Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

bump version

Sara Vieira460b9eaa593a
diff --git a/fly-toml b/fly-toml
index 869dc6cda8..5b1e98d9d0 100644
--- a/fly-toml
+++ b/fly-toml
@@ -7,7 +7,7 @@ processes = []
[experimental]
allowed_public_ports = []
auto_rollback = true
- cmd = "start.sh"
+ cmd = "fly.sh"
entrypoint = "sh"
[mounts]
diff --git a/fly.sh b/fly.sh
new file mode 100644
index 0000000000..d76e3d6e6e
--- /dev/null
+++ b/fly.sh
@@ -0,0 +1,10 @@
+# This file is how Fly starts the server (configured in fly.toml). Before starting
+# the server though, we need to run any prisma migrations that haven't yet been
+# run, which is why this file exists in the first place.
+# Learn more: https://community.fly.io/t/sqlite-not-getting-setup-properly/4386
+
+#!/bin/sh
+
+set -ex
+npx prisma migrate deploy
+npm run start
\ No newline at end of file
diff --git a/package.json b/package.json
index 89d2fc098c..4892c1c1c7 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"@remix-run/serve": "^1.2.3",
"@remix-run/vercel": "^1.2.3",
"@stitches/react": "^1.2.7",
- "@webstudio-is/sdk": "^0.2.3",
+ "@webstudio-is/sdk": "^0.2.3-sqlite",
"bson-objectid": "^2.0.2",
"camelcase": "^6.3.0",
"hyphenate-style-name": "^1.0.4",