You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-5
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ FlexForm is released under MIT, ensuring it remains free and open for use and mo
38
38
-[Deploying on shared hosting](#deploying-on-shared-hosting)
39
39
-[Running locally with docker](#running-locally-with-docker)
40
40
-[Running locally without docker](#running-locally-with-php-server)
41
+
41
42
-[Deploy instructions](#deploy-instructions)
42
43
43
44
@@ -46,24 +47,31 @@ Use the latest [image from docker hub](https://hub.docker.com/r/flexform/flexfor
46
47
```bash
47
48
docker run --name flexform -d -p 9000:9000 flexform/flexform-server:0.1
48
49
```
50
+
Copy environment file and adjust it to your needs:
51
+
```bash
52
+
cp .env.prod .env
53
+
```
49
54
Run DB migrations from container
50
55
```bash
51
56
docker exec -it flexform bash
52
-
php bin/console doctrine:migrations:generate
57
+
php bin/console doctrine:migrations:diff
53
58
php bin/console doctrine:migrations:migrate
54
59
```
55
60
56
61
## Running locally with PHP server
57
62
Make sure you have PHP 8.2 and composer installed.
58
63
Checkout the repository jump to the folder.
59
64
Copy environment file and adjust it to your needs:
65
+
```bash
66
+
cp .env.prod .env
67
+
```
60
68
Install dependencies:
61
69
```bash
62
70
composer install
63
71
```
64
72
Run database migrations:
65
73
```bash
66
-
php bin/console doctrine:migrations:generate
74
+
php bin/console doctrine:migrations:diff
67
75
php bin/console doctrine:migrations:migrate
68
76
```
69
77
Run the server:
@@ -77,7 +85,7 @@ Upload the files to your shared hosting.
77
85
Make sure you make "public" folder as your main folder.
78
86
Run database migrations:
79
87
```bash
80
-
php bin/console doctrine:migrations:generate
88
+
php bin/console doctrine:migrations:diff
81
89
php bin/console doctrine:migrations:migrate
82
90
```
83
91
@@ -90,13 +98,16 @@ Make sure you:
90
98
- Set the environment variable `APP_SECRET` to a random string
91
99
- Set the environment variable `DATABASE_URL` to your database connection string
92
100
93
-
You can see an example of environment variables in the [.env.prod](.env.prod) file.
101
+
Copy environment file with default values:
102
+
```bash
103
+
cp .env.prod .env
104
+
```
94
105
95
106
**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.**
0 commit comments