Skip to content

Commit

Permalink
remove ssh-keygen , PRIVATE_KEY , PUBLIC_KEY from deploy step #34
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson committed Nov 18, 2021
1 parent d72e5ef commit 595d23a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,6 @@ def deploy():
shell=True, # noqa E501
)

# Generate RSA keys for jwt auth
subprocess.call(
f'ssh-keygen -t rsa -N "" -f {dstDir}id_rsa', shell=True
) # noqa E501

# Update .env values for public & private keys
privateKeyDst = dstDir + "id_rsa"
subprocess.call(
f"dotenv -f {envFileDst} set PRIVATE_KEY {privateKeyDst}",
shell=True, # noqa E501
)

publicKeyDst = dstDir + "id_rsa.pub"
subprocess.call(
f"dotenv -f {envFileDst} set PUBLIC_KEY {publicKeyDst}", shell=True
)

# Set SERVER_NAME in .env
subprocess.call(
f"dotenv -f {envFileDst} set SERVER_NAME {webaddress}", shell=True
Expand Down

0 comments on commit 595d23a

Please # to comment.