Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i rename the file to .env? #6

Open
Pogzhsd2 opened this issue Dec 30, 2022 · 4 comments
Open

How do i rename the file to .env? #6

Pogzhsd2 opened this issue Dec 30, 2022 · 4 comments

Comments

@Pogzhsd2
Copy link

I cant rename the env.example to just .env
so how?!?!?!?!?

@Buttermilk-Chris
Copy link

Renaming didn't work for me either. Try (in the editor) "save as" as a name then ".env". that works for me.

@esmerome
Copy link

esmerome commented Jan 6, 2023

I tried renaming the file but my computer (MacOS) won't save any files that begin with a period. It says the file will be hidden, and sure enough, the program can't find it when I try to launch it from Terminal.

@NoahJamesTech
Copy link

NoahJamesTech commented Jan 7, 2023

You can create files that begin with a "." if you can view hidden files.

Enter the following commands to show hidden files:

defaults write com.apple.finder AppleShowAllFiles -bool YES
killall Finder

When you're done enter these commands to hide them again:

defaults write com.apple.finder AppleShowAllFiles -bool NO
killall Finder

@jocull
Copy link

jocull commented Mar 4, 2023

On macOS you can easily rename with the terminal as well. This will feel foreign if you haven't done it before, but there are lots of great examples online (... or you can ask chatGPT itself for help 🤔)

# change into the directory where you need to rename
cd Documents/Projects/chatgpt/
# "move" the file to rename it - current name to destination name
mv env.example .env

Hope that helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants