You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there! When I run the start-database.sh script on any new project in Arch Linux, if I choose to have the password generated for me, the sed command fails with:
awk: warning: escape sequence `\/' treated as plain `/'
You are using the default database password
Should we generate a random password for you? [y/N]: y
sed: can't read s#:password@#:w4ifElw2OcxMb2QY@#: No such file or directory
d5013a5f8bfa394f8eeb0646ab1febb90b3011ea0eca20e4fda1a7944094758a
Database container 'db_name-postgres' was successfully created
The database starts with the correct name and password, but the password isn't filled in the .env file, so I need to manually copy and paste it in from this sed command.
I believe this is caused by the empty string '' in the command which is apparently required in MacOS, but not in Linux, so it thinks the replacement string is the name of the file.
Happy to put in a PR with an attempted fix, although somebody will most likely need to test it for me on Mac to be sure I don't break it for those users 😅
Create a new t3 app on Arch Linux. Run the commands at the end in order until ./start-database.sh. Run that script and choose Yes when asked if you want a password generated for you. The db is started with the generated password, but the .env file is not populated with it.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Provide environment information
Describe the bug
Hey there! When I run the
start-database.sh
script on any new project in Arch Linux, if I choose to have the password generated for me, thesed
command fails with:The database starts with the correct name and password, but the password isn't filled in the .env file, so I need to manually copy and paste it in from this sed command.
I believe this is caused by the empty string
''
in the command which is apparently required in MacOS, but not in Linux, so it thinks the replacement string is the name of the file.Happy to put in a PR with an attempted fix, although somebody will most likely need to test it for me on Mac to be sure I don't break it for those users 😅
Hope to hear from you soon! Thanks 🙂
Reproduction repo
https://github.com/t3-oss/create-t3-app
To reproduce
Create a new t3 app on Arch Linux. Run the commands at the end in order until
./start-database.sh
. Run that script and choose Yes when asked if you want a password generated for you. The db is started with the generated password, but the .env file is not populated with it.Additional information
No response
The text was updated successfully, but these errors were encountered: