revelry_generate 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/skeletons/slush/__generators__/post_skeleton.rb +30 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcac98690706204faa090c78cd24399cb4572354
|
4
|
+
data.tar.gz: 78fae0c24e6d340e6442fc668c3c65841b793c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ded8b4ec5e8376f369158e6fcc8abf10fd69326f4e00a06b7135876e94e92d99b51f9e6c4aae2a294cb6f42f7c523c3f8e265b96f4e94aac19f03a9be27db1
|
7
|
+
data.tar.gz: 9fe51abacdfd9905b97fa0ff2ca09a4aa486a908cd716c65a2ae717fdc890d47ce5f9906ff92c6abaaa7314fb07e95bb95202971297387053d8bad3c9a1e0ebc
|
@@ -158,8 +158,11 @@ inject_into_file 'render-server/package.json', after: '"scripts": {' do
|
|
158
158
|
JSON
|
159
159
|
end
|
160
160
|
|
161
|
-
|
162
|
-
|
161
|
+
if yes? 'Setup github and heroku?'
|
162
|
+
repo = ask('Github repo name (e.g. foo/bar): ')
|
163
|
+
system("hub create #{repo}")
|
164
|
+
create_file 'README.md'
|
165
|
+
append_to_file 'README.md', <<-MD
|
163
166
|
## Starting render server
|
164
167
|
|
165
168
|
To start the render server, do:
|
@@ -170,12 +173,34 @@ To start the render server, do:
|
|
170
173
|
|
171
174
|
## Deploy to Heroku
|
172
175
|
|
173
|
-
|
174
|
-
make you a heroku button to deploy this app:
|
176
|
+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/#{repo})
|
175
177
|
|
178
|
+
MD
|
179
|
+
system <<-SHELL
|
180
|
+
git add .
|
181
|
+
git commit -m 'Commit initially'
|
182
|
+
git push origin -u master
|
183
|
+
open https://heroku.com/deploy?template=`git remote get-url origin`
|
184
|
+
SHELL
|
185
|
+
else
|
186
|
+
create_file 'README.md'
|
187
|
+
append_to_file 'README.md', <<-MD
|
188
|
+
## Starting render server
|
189
|
+
|
190
|
+
To start the render server, do:
|
191
|
+
|
192
|
+
```
|
193
|
+
npm run dev
|
176
194
|
```
|
177
|
-
|
195
|
+
|
196
|
+
## Deploy to Heroku
|
197
|
+
|
198
|
+
```
|
199
|
+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/revelrylabs/foo)
|
178
200
|
```
|
201
|
+
|
179
202
|
MD
|
203
|
+
end
|
204
|
+
|
180
205
|
|
181
206
|
system('cat README.md')
|