Skip to content

Commit 595d23a

Browse files
committed
remove ssh-keygen , PRIVATE_KEY , PUBLIC_KEY from deploy step #34
ref Subscribie/module-builder#23
1 parent d72e5ef commit 595d23a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

main.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,6 @@ def deploy():
8383
shell=True, # noqa E501
8484
)
8585

86-
# Generate RSA keys for jwt auth
87-
subprocess.call(
88-
f'ssh-keygen -t rsa -N "" -f {dstDir}id_rsa', shell=True
89-
) # noqa E501
90-
91-
# Update .env values for public & private keys
92-
privateKeyDst = dstDir + "id_rsa"
93-
subprocess.call(
94-
f"dotenv -f {envFileDst} set PRIVATE_KEY {privateKeyDst}",
95-
shell=True, # noqa E501
96-
)
97-
98-
publicKeyDst = dstDir + "id_rsa.pub"
99-
subprocess.call(
100-
f"dotenv -f {envFileDst} set PUBLIC_KEY {publicKeyDst}", shell=True
101-
)
102-
10386
# Set SERVER_NAME in .env
10487
subprocess.call(
10588
f"dotenv -f {envFileDst} set SERVER_NAME {webaddress}", shell=True

0 commit comments

Comments
 (0)