How to setup AWS SAM to run locally via Git Bash?
Nov 17, 2022 - by kurinchilamp / / Post Comment
Once AWS SAM CLI is installed/setup in your system, you will need to give a reference to sam.cmd file.
In windows, you can give an alias to the folder where SAM is setup
alias sam="/c/Program\ Files/Amazon/AWSSAMCLI/bin/sam.cmd"
In linux,
$ vi ~/.bashrc
alias = sam="sam.cmd"
$ source ~/.bashrc
Continue Reading
Django: Superuser creation skipped due to not running in a TTY
Mar 06, 2021 - by kurinchilamp / / Post Comment
When trying to create a super user from command line, you might come across the message below:
$ python manage.py createsuperuser
Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.
If you are on windows and are trying to execute the above command from git bash, try
$ winpty python manage.py createsuperuser
winpty provides a communication layer for windows console programs from git bash. It runs on windows xp through windows 10.
Continue Reading
Git: SSL certificate problem: unable to get local issuer certificate
Dec 16, 2016 - by kurinchilamp / / Post Comment
You get this message when the system is behind a firewall and when the security certificates are blocked.
There are two ways to overcome this message and to enable a git pull or git clone.
i) Issue the below command from git bash
$ git config --global http.sslVerify false
OR
ii) Add http block in "gitconfig" file to avoid ssl verification
[http]
sslVerify = false
sslCAinfo = /bin/curl-ca-bundle.crt
Continue Reading