shopify-sinatra-app 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/bin/shopify-sinatra-app-generator +3 -1
- data/shopify-sinatra-app.gemspec +1 -1
- 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: d5258ae2ad69e41e73b1ac65c4486b50c18ed613
|
4
|
+
data.tar.gz: f1353a6f9750ccecffc2fb8b5e648ca9d8a8fa7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b04db231a6a155764b025ce9abccf65b9940bc1f770794b11f3dfe5bb28d0bd6ea65746e3419187c2b762fd79bf8a42f454d494342b5fd6c54e58c6f3c18358
|
7
|
+
data.tar.gz: 702b19de25f03abedb4224ef3ee9fc043dee11a86e4c2b3790fcc2d755092a205c715cc0d1da4a0dd604c819ddf6d48b0aa8a06036095d8135b7831626ec36a0
|
data/README.md
CHANGED
@@ -35,6 +35,8 @@ This will create a new skeleton shopify-sinatra-app. The generator will create s
|
|
35
35
|
|
36
36
|
`config/database.yml` --> The database config for active record. Initially this is setup to use sqlite3 for development and testing which you may want to change to mimic your production database.
|
37
37
|
|
38
|
+
`.env` --> a hidden file not tracked by source control for storing credentials etc. to be set as environment variables
|
39
|
+
|
38
40
|
`config.ru` --> Rackup file - describes how to run a rack based app
|
39
41
|
|
40
42
|
`Gemfile` --> manages the dependencies of the app
|
@@ -62,7 +64,7 @@ Note - The shopify-sinatra-app creates an embedded app! You need change the embe
|
|
62
64
|
|
63
65
|
Also note that when developing locally you'll need to enable unsafe javascripts in your browser for the embedded sdk to function. Read more [here](http://docs.shopify.com/embedded-app-sdk/getting-started)
|
64
66
|
|
65
|
-
After creating your new application you need to
|
67
|
+
After creating your new application you need to edit the `.env` file and add the following lines:
|
66
68
|
|
67
69
|
```
|
68
70
|
SHOPIFY_API_KEY=<your api key>
|
@@ -24,13 +24,15 @@ else
|
|
24
24
|
FileUtils.cp_r(generator_dir + "/public", app_dir + "/public")
|
25
25
|
FileUtils.cp_r(generator_dir + "/views", app_dir + "/views")
|
26
26
|
|
27
|
-
FileUtils.cp(generator_dir + "/.
|
27
|
+
FileUtils.cp(generator_dir + "/.gitignore", app_dir + "/.gitignore")
|
28
28
|
FileUtils.cp(generator_dir + "/config.ru", app_dir + "/config.ru")
|
29
29
|
FileUtils.cp(generator_dir + "/Procfile", app_dir + "/Procfile")
|
30
30
|
FileUtils.cp(generator_dir + "/Rakefile", app_dir + "/Rakefile")
|
31
31
|
FileUtils.cp(generator_dir + "/Gemfile", app_dir + "/Gemfile")
|
32
32
|
FileUtils.cp(generator_dir + "/README.md", app_dir + "/README.md")
|
33
33
|
|
34
|
+
FileUtils.touch ".env"
|
35
|
+
|
34
36
|
Dir.chdir(app_dir)
|
35
37
|
|
36
38
|
pipe = IO.popen("bundle install")
|
data/shopify-sinatra-app.gemspec
CHANGED