-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Auth code2 #234
Auth code2 #234
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@ethanstrominger For the pre-commit hooks that gave you errors, it looks like it's just something to do with your particular system environment or macOS. I added them back and the automated pre-commit checks are all still passing. Like we discussed, you can skip hooks by setting SKIP environment variable like |
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 is what I have so far. The local build might be missing a couple of steps on how to set up the venv unless the start-local.sh takes care of that.
@@ -12,6 +12,6 @@ then | |||
fi | |||
|
|||
# python manage.py flush --no-input | |||
# python manage.py migrate | |||
python manage.py migrate |
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.
It's not necessary to run this since the buildrun.sh
script also calls migrate (actually in the run.sh
that it calls)
``` | ||
brew install pre-commit | ||
``` |
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.
Docker, do the following steps. WARNING: If you run into issues you will get limited support. | ||
|
||
Run these commands from the app directory: | ||
1. From the terminal: |
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.
Need to add a blank line before the numbered list so that 1.
shows up in a separate line. There's a few things that got changed when I ran mdformat
locally. I can commit the changes if you're okay with it.
@@ -25,4 +25,4 @@ These scripts assume you are using bash. | |||
|
|||
1. **createsuperuser.sh** - creates a default superuser. | |||
|
|||
1. This assumes that `DJANGO_SUPERUSER_USERNAME` and `DJANGO_SUPERUSER_PASSWORD` are set in `.env.dev` | |||
1. This assumes that `DJANGO_SUPERUSER_USERNAME` and `DJANGO_SUPERUSER_PASSWORD` are set in `.env.docker` |
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.
So it's .env.docker
and .env.local
. Eventually we could have a .env.production
, which also uses docker. We'll think about that when we get there.
docs/how-to/run-local.md
Outdated
3. From the terminal in the app directory, run: | ||
``` | ||
source ../scripts/setscriptpath.sh | ||
source start-local.sh |
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.
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.
What changes did you make?
Why did you make the changes (we will use this info to test)?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
Visuals after changes are applied