-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2719 from data-for-change/dev
merge dev into master
- Loading branch information
Showing
4 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
alembic/versions/e962054e4422_add_street_numeric_indexes_to_involved_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""add street numeric indexes to involved heberw | ||
Revision ID: e962054e4422 | ||
Revises: mn9px8cacn24 | ||
Create Date: 2024-10-20 08:24:08.746964 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'e962054e4422' | ||
down_revision = 'mn9px8cacn24' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
# import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.create_index('ix_involved_markers_hebrew_street1', | ||
'involved_markers_hebrew', ['street1'], unique=False) | ||
op.create_index('ix_involved_markers_hebrew_street2', | ||
'involved_markers_hebrew', ['street2'], unique=False) | ||
|
||
|
||
def downgrade(): | ||
op.drop_index('ix_involved_markers_hebrew_street1', 'involved_markers_hebrew') | ||
op.drop_index('ix_involved_markers_hebrew_street2', 'involved_markers_hebrew') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ Instructions | |
|
||
**1.** [Get the code](https://github.com/data-for-change/anyway#getting-the-code) | ||
|
||
**2.** [Install Docker](https://docs.docker.com/install/) and [Install Docker Compose](https://docs.docker.com/compose/install/) | ||
**2.** [Install Docker](https://docs.docker.com/install/) and [Install Docker Compose](https://docs.docker.com/compose/install/). (Install Docker for Windows, also when using WSL2) | ||
|
||
**3.** Get the `.env` file with the required secret values and place in the project **root directory** - can be downloaded [from here](https://drive.google.com/file/d/1bgMyKlHoAAIixlk8qqmZaXPdmqCxldLu/view?usp=sharing). Note that this file **needs to be saved as `.env`** - with the `.` at the beginning of the name of the file. | ||
**Continue with your OS, See below** | ||
|
@@ -251,6 +251,17 @@ services: | |
|
||
This loads the ./anyway dir (relative to the docker-compose file) as /anyway/anyway in the docker overriding the inner volume and allowing you to run your own code inside the docker. | ||
|
||
|
||
Common Errors | ||
----------------------- | ||
Q: When working in Windows environment you might encounter in this error during the build proccess. | ||
``` | ||
anyway_1 | standard_init_linux.go:211: exec user process caused "no such file or directory" | ||
``` | ||
A: The solution is very simple. You need to go to the docker-entrypoint.sh file and save it as CRLF (encoding of new line in Windows) instead of LF (encoding of new line in Linux). | ||
In VS code just open the file and choose CLRF at the button right of the screen, for other IDEs check online for instructions. | ||
|
||
|
||
Questions and ideas | ||
----------------- | ||
Talk to Atalya on ANYWAY's Slack (atalya) or email us [[email protected]](mailto:[email protected]). | ||
|