質問編集履歴
2
修正・追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -71,4 +71,14 @@
|
|
71
71
|
span #{secondItem}
|
72
72
|
button(type="submit") 投稿
|
73
73
|
|
74
|
-
```
|
74
|
+
```
|
75
|
+
|
76
|
+
ディレクトリに以下のファイルがあります。 Procfile form.pug node_modules package.json app.json index.js package-lock.json
|
77
|
+
|
78
|
+
Terminalで、ワークディレクトリに移動して、git add .
|
79
|
+
git commit -m "herokuで公開する"と入力してEnter
|
80
|
+
次に、heroku createと入力してEnter
|
81
|
+
次に、git push heroku masterと入力しましたが
|
82
|
+
デプロイができませんでした。
|
83
|
+
|
84
|
+
ログでは、現在のnode.jsのバージョンが使えないとのこと
|
1
加筆、修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
```
|
1
|
+
```javascript
|
2
2
|
'use strict';
|
3
3
|
const http = require('http');
|
4
4
|
const pug = require('pug');
|
@@ -52,4 +52,23 @@
|
|
52
52
|
server.listen(port, () => {
|
53
53
|
console.info('[' + new Date + '] Listening on ' + port);
|
54
54
|
})
|
55
|
+
```
|
56
|
+
|
57
|
+
```Pug
|
58
|
+
doctype html
|
59
|
+
html(lang="ja")
|
60
|
+
head
|
61
|
+
meta(charset="UTF-8")
|
62
|
+
title アンケート
|
63
|
+
body
|
64
|
+
h1 どちらが食べたいですか?
|
65
|
+
form(method="post" action=path)
|
66
|
+
span 名前:
|
67
|
+
input(type="text" name="name")
|
68
|
+
input(type="radio" name="favorite" value=firstItem)
|
69
|
+
span #{firstItem}
|
70
|
+
input(type="radio" name="favorite" value=secondItem)
|
71
|
+
span #{secondItem}
|
72
|
+
button(type="submit") 投稿
|
73
|
+
|
55
74
|
```
|