From 726cd0fd43672d9c17d28ee214459c7eee13b37f Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Fri, 22 Jul 2022 20:51:39 -0500 Subject: [PATCH] Move main.go to the root so we can do `go run .` --- README.md | 6 +++--- src/main.go => main.go | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main.go => main.go (100%) diff --git a/README.md b/README.md index 0eb564b..9115726 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ You will need the following software installed: Depending on your installation of Postgres, you may need to modify the hostname and port in the Postgres section of the config. -- **Set up the database.** Run `go run src/main.go db seed` to initialize the database and fill it with sample data. +- **Set up the database.** Run `go run . db seed` to initialize the database and fill it with sample data. - **Update your hosts file.** The website uses subdomains for official projects, so the site cannot simply be run off `localhost`. Add the following line to your hosts file: @@ -50,12 +50,12 @@ line to your hosts file: Running the site is easy: ``` -go run src/main.go +go run . ``` You should now be able to visit http://handmade.local:9001 to see the website! -There are also several other commands built into the website executable. You can see documentation for each of them by running `go run src/main.go help` or adding the `-h` flag to any command. +There are also several other commands built into the website executable. You can see documentation for each of them by running `go run . help` or adding the `-h` flag to any command. ## Running tests diff --git a/src/main.go b/main.go similarity index 100% rename from src/main.go rename to main.go