-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ddev local setup integration for BE and FE site. #434
base: master
Are you sure you want to change the base?
Conversation
415e8f1
to
8c40738
Compare
if ! command -v composer >/dev/null; then | ||
echo "composer is not available. You may need to install 'composer'" | ||
exit 1 | ||
fi |
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.
This isn't true
@@ -0,0 +1,20 @@ | |||
#!/bin/bash | |||
|
|||
#ddev-generated |
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.
Remove this line
hooks: | ||
post-start: | ||
- exec: yarn install |
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.
We should move this to setup
, or also have composer install
here I suppose
web_extra_daemons: | ||
- name: http | ||
command: "yarn frontend-start" | ||
directory: /var/www/html |
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.
I'd had issues with this, where it runs before dependencies have installed. I'm pretty sure this starts up before post-start
hook executes.
1. Configure frontend app. | ||
- Create `.env.local` in frontend directory | ||
- Add following environment variables | ||
|
||
``` | ||
REACT_APP_API_BASE_URL=https://contribkanban.com.ddev.site | ||
PORT=4000 | ||
``` | ||
|
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.
We can add REACT_APP_API_BASE_URL
to the DDEV config yaml web environment variables
Things covered
trim()
deprecation warning.ddev setup
to setup project locally.