Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kivS committed Jun 14, 2022
1 parent a68920c commit 23b85fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Nginx project Linker

Utility tool to create dymbolic link for your project's nginx configuration file for deployment

Utility tool to create dymbolic link for your project's nginx configuration file
for deployment

## How to use

Expand All @@ -16,7 +16,6 @@ Utility tool to create dymbolic link for your project's nginx configuration file
deno run --allow-write --allow-read https://raw.githubusercontent.com/kivS/nginx-project-linker/main/main.ts <nginx_conf_file>
```


- Install as script

```bash
Expand Down
4 changes: 3 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { basename } from "./deps.ts";

const guessed_nginx_server_dir_based_on_os = Deno.build.os === "darwin" ? "/opt/homebrew/etc/nginx/servers" : "/etc/nginx/sites-enabled";
const guessed_nginx_server_dir_based_on_os = Deno.build.os === "darwin"
? "/opt/homebrew/etc/nginx/servers"
: "/etc/nginx/sites-enabled";

const SUCCESS_MESSAGE_STYLE = "background: #222; color: #bada55";
const ERROR_MESSAGE_STYLE = "background: #222; color: #ff0000";
Expand Down

0 comments on commit 23b85fb

Please sign in to comment.