You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
5
5
*[**Create your database**](#create-your-database)
6
6
*[Deploy to **Heroku**](#deploy-to-heroku)
7
+
*[Deploy to **Glitch**](#deploy-to-glitch)
7
8
*[Deploy to **Azure**](#deploy-to-azure)
8
9
9
-
10
10
## Create your database
11
11
12
12
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
97
97
constport=process.env.PORT||4000;
98
98
```
99
99
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`
0 commit comments