Skip to content

Commit 59bc908

Browse files
committed
Default SQLite migration file removed
1 parent 71ac858 commit 59bc908

File tree

2 files changed

+13
-61
lines changed

2 files changed

+13
-61
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ docker run --name flexform -d -p 9000:9000 flexform/flexform-server:0.1
4949
Run DB migrations from container
5050
```bash
5151
docker exec -it flexform bash
52+
php bin/console doctrine:migrations:generate
5253
php bin/console doctrine:migrations:migrate
5354
```
5455

@@ -62,6 +63,7 @@ composer install
6263
```
6364
Run database migrations:
6465
```bash
66+
php bin/console doctrine:migrations:generate
6567
php bin/console doctrine:migrations:migrate
6668
```
6769
Run the server:
@@ -73,6 +75,11 @@ php -S localhost:8000 -t public
7375
Build the project on your local machine or [download prebuild release](https://flexform.nyc3.cdn.digitaloceanspaces.com/flexform-server-latest.zip).
7476
Upload the files to your shared hosting.
7577
Make sure you make "public" folder as your main folder.
78+
Run database migrations:
79+
```bash
80+
php bin/console doctrine:migrations:generate
81+
php bin/console doctrine:migrations:migrate
82+
```
7683

7784
## Deploying on cloud hosting
7885
You can deploy FlexForm on any cloud hosting provider that supports PHP 8.2 or higher.
@@ -87,6 +94,12 @@ You can see an example of environment variables in the [.env.prod](.env.prod) fi
8794

8895
**Please make sure you made /app/var as persistent storage if you use SQLite. If you want to use other database please change DATABASE_URL env variable.**
8996

97+
Run database migrations:
98+
```bash
99+
php bin/console doctrine:migrations:generate
100+
php bin/console doctrine:migrations:migrate
101+
```
102+
90103
## Deploy instructions
91104
- [Installing FlexForm on DigitalOcean Apps](https://medium.com/@ashelestov/installing-flexform-on-digitalocean-apps-b3e5b1ba868a)
92105

migrations/Version20240109170611.php

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)