Skip to content

Commit 9f1ea69

Browse files
committed
Documentation fix
1 parent 59bc908 commit 9f1ea69

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

Diff for: README.md

+16-5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ FlexForm is released under MIT, ensuring it remains free and open for use and mo
3838
- [Deploying on shared hosting](#deploying-on-shared-hosting)
3939
- [Running locally with docker](#running-locally-with-docker)
4040
- [Running locally without docker](#running-locally-with-php-server)
41+
4142
- [Deploy instructions](#deploy-instructions)
4243

4344

@@ -46,24 +47,31 @@ Use the latest [image from docker hub](https://hub.docker.com/r/flexform/flexfor
4647
```bash
4748
docker run --name flexform -d -p 9000:9000 flexform/flexform-server:0.1
4849
```
50+
Copy environment file and adjust it to your needs:
51+
```bash
52+
cp .env.prod .env
53+
```
4954
Run DB migrations from container
5055
```bash
5156
docker exec -it flexform bash
52-
php bin/console doctrine:migrations:generate
57+
php bin/console doctrine:migrations:diff
5358
php bin/console doctrine:migrations:migrate
5459
```
5560

5661
## Running locally with PHP server
5762
Make sure you have PHP 8.2 and composer installed.
5863
Checkout the repository jump to the folder.
5964
Copy environment file and adjust it to your needs:
65+
```bash
66+
cp .env.prod .env
67+
```
6068
Install dependencies:
6169
```bash
6270
composer install
6371
```
6472
Run database migrations:
6573
```bash
66-
php bin/console doctrine:migrations:generate
74+
php bin/console doctrine:migrations:diff
6775
php bin/console doctrine:migrations:migrate
6876
```
6977
Run the server:
@@ -77,7 +85,7 @@ Upload the files to your shared hosting.
7785
Make sure you make "public" folder as your main folder.
7886
Run database migrations:
7987
```bash
80-
php bin/console doctrine:migrations:generate
88+
php bin/console doctrine:migrations:diff
8189
php bin/console doctrine:migrations:migrate
8290
```
8391

@@ -90,13 +98,16 @@ Make sure you:
9098
- Set the environment variable `APP_SECRET` to a random string
9199
- Set the environment variable `DATABASE_URL` to your database connection string
92100

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+
```
94105

95106
**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.**
96107

97108
Run database migrations:
98109
```bash
99-
php bin/console doctrine:migrations:generate
110+
php bin/console doctrine:migrations:diff
100111
php bin/console doctrine:migrations:migrate
101112
```
102113

0 commit comments

Comments
 (0)