Created
          October 9, 2022 18:02 
        
      - 
      
- 
        Save bearzk/a670614c398428463170e61cd98de31b to your computer and use it in GitHub Desktop. 
    setup .env from .env.example
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # put setup script here | |
| # - create default config file | |
| # - etc | |
| echo "########################" | |
| echo "## setting up project ##" | |
| echo "########################" | |
| echo | |
| echo | |
| FILE=.env | |
| if test -f "$FILE"; then | |
| echo "$FILE exists." | |
| else | |
| echo "$FILE doesn't exist, copying .env.example as .env" | |
| cp .env.example .env | |
| fi | |
| echo "read through comments in .env.example if you are unsure about certain env vars." | |
| echo | |
| echo | |
| echo "########################" | |
| echo "## done ##" | |
| echo "########################" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment