Skip to content

Commit

Permalink
corrent env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Isty001 committed Oct 2, 2017
1 parent eee6604 commit 14b2269
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/environment.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ static void get_path(char *path, int argc, char **argv)
break;
}
}

sprintf(path, "/etc/%s/.env.%s", DIR_APP_RELATIVE, env);

if (!file_exists(path)) {
sprintf(path, "./config/environments/.env.%s", env);
}
}

void env_setup(int argc, char **argv)
Expand Down

0 comments on commit 14b2269

Please sign in to comment.