Prepare the project to be deployed - #85
Conversation
| name: {{ template "fullname" . }} | ||
| spec: | ||
| accessModes: | ||
| - ReadWriteMany |
| externalPort: 8080 | ||
| internalPort: 8080 | ||
| name: code-annotation | ||
| internalDatabasePath: /var/code-annotation |
rporres
left a comment
There was a problem hiding this comment.
How does the application know that database path is in /var/code-annotation?
93e52ce to
8d1b6a1
Compare
|
Updated PR description as src-d/issues-infrastructure#129 is done. So, right now what's left before merging this seems to be:
Please, feel free to update this comment in case something else is missing, etc. |
c1ebb3f to
10bf191
Compare
|
\cc @smacker for review |
smacker
left a comment
There was a problem hiding this comment.
impossible to run locally with defaults
| Port int `envconfig:"PORT" default:"8080"` | ||
| UIDomain string `envconfig:"UI_DOMAIN" default:"http://127.0.0.1:8080"` | ||
| DBConn string `envconfig:"DB_CONNECTION" default:"sqlite://./internal.db"` | ||
| DBConn string `envconfig:"DB_CONNECTION" default:"sqlite:///var/code-annotation/internal.db"` |
There was a problem hiding this comment.
by default server will fail because /var/code-annotation doesn't exist.
not very user-friendly.
There was a problem hiding this comment.
Since we're doing prod first that's the expected location we agreed.
We could maybe change the .env.tpl to be:
DB_CONNECTION=sqlite://internal.dbThere was a problem hiding this comment.
that's what I mean. It's absolutely okay to have /var/code-annotation path as default, but let's keep it simple for developers. Thanks!
There was a problem hiding this comment.
👍 If anybody else wonders, feedback seems to be addressed and default for dev env was changed as requested.
|
|
||
| # ci variables | ||
| TRAVIS_BUILD_DIR ?= $(shell pwd) | ||
| CGO_ENABLED = 1 |
There was a problem hiding this comment.
at some point, it was needed, but I also needed to change a big amount of things to make the project deployable.... and maybe another change made not necessary the CGO.
Removed
| # Set enviroment variables from .env file | ||
| ENV ?= .env | ||
| $(ENV): | ||
| touch $(ENV) |
There was a problem hiding this comment.
I would prefer import .env only if it exists instead of creating new one. But up to you.
| "redux": "^3.7.2", | ||
| "redux-devtools-extension": "^2.13.2", | ||
| "redux-little-router": "^14.2.3", | ||
| "redux-little-router": "^15.0.0", |
There was a problem hiding this comment.
could you describe what was the problem?
There was a problem hiding this comment.
While trying to make the project buildable it was needed at some point (it was somehow related to FormidableLabs/redux-little-router#266), but it is not longer needed (idk why), so rollbacked.
smacker
left a comment
There was a problem hiding this comment.
good job! don't forget to squash commit later please.
|
#36 is merged now, rebase is in order. LGTM after that! 🎉 |
Default value for UI_DOMAIN will be REACT_APP_SERVER_URL
Add react-app-rewired to prod dependencies Remove yarn install from Travis because it's a lint/test dependency
Added during code review: - Provide a default valur for DB_CONNECTION while developing
|
rebased |
Depends on #36 Single BinnaryDepends on #91 Remove PR from Drone configDepends on #90 Define a persistentVolume for internal databaseDepends on https://github.com/src-d/issues-infrastructure/issues/129 Push an example DB into the code-annotation volumeDepends on https://github.com/src-d/issues-infrastructure/issues/131 Push the final DB into the code-annotation volumeMany different fixes and other additions; see commit messages 🗡️