add docker file
This commit is contained in:
@@ -17,7 +17,7 @@ PORT="8000"
|
||||
Run the server:
|
||||
|
||||
```bash
|
||||
go build -o out && ./out
|
||||
go build -o notely && ./notely
|
||||
```
|
||||
|
||||
*This starts the server in non-database mode.* It will serve a webpage at `http://localhost:8000`. However, you won't be able to interact with the webpage until you connect it to a MySQL database and run the migrations.
|
||||
@@ -47,7 +47,7 @@ Then run the migrations:
|
||||
Start the server:
|
||||
|
||||
```bash
|
||||
go build -o out && ./out
|
||||
go build -o notely && ./notely
|
||||
```
|
||||
|
||||
Because the `DATABASE_URL` environment variable is set, the server will connect to the database and serve the webpage at `http://localhost:8000`. The page should be fully functional now. You can:
|
||||
|
||||
Reference in New Issue
Block a user