Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add scripts/console #1295

Merged
merged 1 commit into from Mar 31, 2021
Merged

Add scripts/console #1295

merged 1 commit into from Mar 31, 2021

Conversation

jwalgran
Copy link
Contributor

@jwalgran jwalgran commented Mar 30, 2021

Overview

One of the "scripts to rule them all" that we had not yet implemented on this project. One helpful use of this script (which prompted us to add it to the scripts folder) is logging into the running Django container and running pip freeze to check the version numbers of installed dependencies.

https://github.com/github/scripts-to-rule-them-all

Connects #1294

Testing Instructions

  • Run ./scripts/server
  • Run ./scripts/console app. Use ls to verify that the cwd is the JS application.
  • Run ./scripts/console django. Use ls to verify that the cwd is the Django application.
  • Run ./scripts/console nope and verify that help is displayed.

Checklist

  • fixup! commits have been squashed
  • CI passes after rebase
  • CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

Comment on lines +18 to +26
case $1 in
app) APP_CONTAINER=1 ;;
django) DJANGO_CONTAINER=1 ;;
help|*) usage; exit 1 ;;
esac

if [ -n "$APP_CONTAINER" ] || [ -n "$DJANGO_CONTAINER" ]; then
docker-compose exec "${1}" /bin/bash
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This style was copied from another Azavea project

Copy link
Contributor

@TaiWilkin TaiWilkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working well!

@TaiWilkin TaiWilkin assigned jwalgran and unassigned TaiWilkin Mar 31, 2021
One of the "scripts to rule them all" that we had not yet implemented on this
project. One helpful use of this script (which prompted us to add it to the
scripts folder) is logging into the running Django container and running `pip
freeze` to check the version numbers of installed dependencies.

https://github.com/github/scripts-to-rule-them-all
@jwalgran jwalgran merged commit 8a5e0ec into develop Mar 31, 2021
@jwalgran jwalgran deleted the feature/jcw/add-console branch March 31, 2021 21:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants