forked from toolshed/abra
feat: finally implement app new command
This commit is contained in:
@ -208,6 +208,10 @@ func CopyAppEnvSample(appType, appName, server string) error {
|
||||
}
|
||||
|
||||
appEnvPath := path.Join(ABRA_DIR, "servers", server, fmt.Sprintf("%s.env", appName))
|
||||
if _, err := os.Stat(appEnvPath); err == nil {
|
||||
return fmt.Errorf("%s already exists?", appEnvPath)
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(appEnvPath, envSample, 0755)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user