-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Ilios Development Setup #1748
Conversation
This isn't a good idea right now as docker doesn't sync files fast enough to use it in development.
README.md
Outdated
@@ -35,12 +35,38 @@ Email: info@iliosproject.org | |||
|
|||
# Development of Ilios | |||
|
|||
You can build a run a local version of Ilios easily using [docker](https://www.docker.com/). | |||
There are convenient clients for Mac and Windows and instructions Linux. | |||
The Ilios API is a PHP application which required a MySql server. The easiest way to get a working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ilios API is a PHP application which requires a MySQL server. The easiest way to get a working
README.md
Outdated
You can build a run a local version of Ilios easily using [docker](https://www.docker.com/). | ||
There are convenient clients for Mac and Windows and instructions Linux. | ||
The Ilios API is a PHP application which required a MySql server. The easiest way to get a working | ||
MySql database running is by using the ilios/mysql-demo [docker](https://www.docker.com/) image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MySQL database server running is by using the ilios/mysql-demo docker image.
README.md
Outdated
There are convenient clients for Mac and Windows and instructions Linux. | ||
The Ilios API is a PHP application which required a MySql server. The easiest way to get a working | ||
MySql database running is by using the ilios/mysql-demo [docker](https://www.docker.com/) image. | ||
After installing docker you can start a demo database by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After installing Docker you can start a demo database by running the following command:
README.md
Outdated
``` | ||
|
||
You will now be able to access ilios at http://localhost:8000 | ||
Now modify your `/app/config/parameters.yml` to connect to this database: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, modify your /app/config/parameters.yml
configuration file to connect to this database:
README.md
Outdated
database_mysql_version: 5.7 | ||
``` | ||
|
||
You can test that your database is configured correctly by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can test that the database is configured correctly by running:
README.md
Outdated
bin/console doctrine:schema:validate | ||
``` | ||
|
||
Now you can start a PHP development webserver by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start a PHP development webserver by running:
README.md
Outdated
``` | ||
|
||
|
||
You will now be able to access Ilios at http://localhost:8000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should now be able to access your newly-Dockerized instance of Ilios by visiting http://localhost:8000 in you browser.
ff72e4f
to
23050e2
Compare
This is a more reliable way to run and develop Ilios.
I’ve removed our docker-compose setup in favor of running a mysql server in docker and using symfony’s built in web server to do the rest. This is significantly more reliable and much faster even though it isn’t nearly as pretty.
Fixes #1747