Last active
August 11, 2020 12:52
-
-
Save zspine/4a3d0d0d02c62e44c46a104413169337 to your computer and use it in GitHub Desktop.
Frequently used fullstack developer commands
This file contains hidden or 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
# DOCKER COMPOSE | |
#################################################################### | |
docker-compose exec {CONTAINER_ID} sh |
This file contains hidden or 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
# DOCKER | |
#################################################################### | |
# Copy a file from host to container | |
docker cp {FILNAME.sql} {CONTAINER_NAME}:/{FILNAME.sql} | |
This file contains hidden or 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
# SQL | |
#################################################################### | |
#import sql file | |
mysql -u db_user -p db_name < db_file.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment