Skip to content

Commit b4f901b

Browse files
authored
Add instructions for how to deploy to glitch
1 parent 503156e commit b4f901b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
55
* [**Create your database**](#create-your-database)
66
* [Deploy to **Heroku**](#deploy-to-heroku)
7+
* [Deploy to **Glitch**](#deploy-to-glitch)
78
* [Deploy to **Azure**](#deploy-to-azure)
89

9-
1010
## Create your database
1111

1212
1. Press the green `Use this template`-button in the right corner
@@ -97,6 +97,17 @@ You also have to make changes to the port, you can't hardcode a dev-port. But yo
9797
const port = process.env.PORT || 4000;
9898
```
9999

100+
## Deploy to Glitch
101+
102+
Not tested 100%. Same as with Heroku, will sleep after a while.
103+
104+
1. Register for [Glitch](https://glitch.com/) or go to [Glitch/edit](https://glitch.com/)
105+
2. Click **New Project**
106+
3. Click **Import from GitHub**
107+
4. Paste `https://github.com/jesperorb/json-server-heroku.git` into the URL-input and click OK.
108+
5. Wait for it to setup
109+
6. Press **Share**-button to get your URL to live site. It should be something for example like: `https://fallabe-pie-snake.glitch.me`. And your DB will be at `https://fallabe-pie-snake.glitch.me/posts`
110+
100111
## Deploy to **Azure**
101112

102113
<img align="right" width="100px" height="auto" src="https://docs.microsoft.com/en-us/azure/media/index/azure-germany.svg" alt="Azure">

0 commit comments

Comments
 (0)