Skip to content

Commit ba04de1

Browse files
authored
Merge pull request #746 from gruntwork-io/apt-2001-support-stage-env-carts
[APT-2001] Support stage environment cart
2 parents 40ed044 + b12c68d commit ba04de1

File tree

7 files changed

+52
-25
lines changed

7 files changed

+52
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The fastest way to launch this site is to use [Docker](https://www.docker.com/).
1313
1. `docker-compose up`
1414
1. Go to `http://localhost:4000` to test
1515

16-
The default Docker compose configuration supports hot-reloading of your local environemnt, meaning that as you edit files to change markup, text, images, etc, your local development server will pick up these changes and reload the latest version of the site for you. This makes it quick and convenient to develop on the site locally.
16+
The default Docker compose configuration supports hot-reloading of your local environment, meaning that as you edit files to change markup, text, images, etc, your local development server will pick up these changes and reload the latest version of the site for you. This makes it quick and convenient to develop on the site locally.
1717

1818
## Manual quick start
1919

@@ -73,7 +73,7 @@ group :jekyll_plugins do
7373
gem 'less', '2.6.0'
7474
gem 'jekyll-asciidoc'
7575
gem 'jekyll-toc'
76-
gem 'nokogiri', '1.11.0.rc4' # Addresssing security issue in earlier versions of this library
76+
gem 'nokogiri', '1.11.0.rc4' # Addressing security issue in earlier versions of this library
7777
# gem 'jekyll-feed'
7878
end
7979
```

_config.prod.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# Website settings
22
enable_hotjar: true
3+
4+
# Production environment Developer Portal URL
5+
developer_portal_url: https://app.gruntwork.io
6+
7+
# Production environment product config for the pricing and checkout pages
8+
products:
9+
AWS:
10+
key: standard_subscription
11+
stripeProductId: prod_KoYQEu6on7Pmwi
12+
ProSupport:
13+
key: pro_support
14+
stripeProductId: prod_FpWhWaePaAvZ4q
15+
RefArch:
16+
key: setup_deployment
17+
stripeProductId: prod_KoYHGWV1pdG2Bv
18+
CIS:
19+
key: setup_compliance
20+
stripeProductId: prod_KoYXgbgz6RIfvN
21+
Users:
22+
key: standard_users
23+
stripeProductId: prod_KoYJ9bAynPjS3I

_config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,27 @@ asciidoctor: {}
3535

3636
permalink: /guides/:categories/:title/
3737

38+
# Staging environment Developer Portal URL
39+
developer_portal_url: https://aperture.dogfood-stage.com/
40+
41+
# Staging environment product config for the pricing and checkout pages
42+
products:
43+
AWS:
44+
key: standard_subscription
45+
stripeProductId: prod_KZH5PYGPzdh5nu
46+
ProSupport:
47+
key: pro_support
48+
stripeProductId: prod_KZHA5WMpiNsnOs
49+
RefArch:
50+
key: setup_deployment
51+
stripeProductId: prod_KZHHUK5LUuYRFl
52+
CIS:
53+
key: setup_compliance
54+
stripeProductId: prod_KZH9VxdizHvbqI
55+
Users:
56+
key: standard_users
57+
stripeProductId: prod_KZH7Hb6FqIPOcl
58+
3859
exclude:
3960
- .dockerignore
4061
- .editorconfig

_data/products.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

_includes/scripts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
22
window.pricing = {{ site.data.pricing | jsonify }}
3-
window.products = {{ site.data.products | jsonify }}
3+
window.products = {{ site.products | jsonify }}
44
</script>
55
<script src="{{ site.assets_base_url }}js/main.js"></script>
66
{% if page.custom_js %} {% for js_file in page.custom_js %}

pages/checkout/_add-ons.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ <h1 class="addon-amount">$1,950</h1>
3737
<p>
3838
<a
3939
class="btn btn-primary addon-button"
40-
name="{{site.data.products.ProSupport.key}}"
40+
name="{{site.products.ProSupport.key}}"
4141
data-addon-action-type="Add"
42-
data-product-id="{{site.data.products.ProSupport.stripeProductId}}"
42+
data-product-id="{{site.products.ProSupport.stripeProductId}}"
4343
>Add to Subscription
4444
<i class="fa fa-angle-double-right fa-lg" aria-hidden="true"></i
4545
></a>
@@ -64,9 +64,9 @@ <h1 class="addon-amount" id="addon-amount-refarch">$4,950</h1>
6464
<p id="refarch-button-default" hidden>
6565
<a
6666
class="btn btn-primary addon-button"
67-
name="{{site.data.products.RefArch.key}}"
67+
name="{{site.products.RefArch.key}}"
6868
data-addon-action-type="Add"
69-
data-product-id="{{site.data.products.RefArch.stripeProductId}}"
69+
data-product-id="{{site.products.RefArch.stripeProductId}}"
7070
>Add to Subscription
7171
<i class="fa fa-angle-double-right fa-lg" aria-hidden="true"></i
7272
></a>
@@ -91,9 +91,9 @@ <h1 class="addon-amount" id="addon-amount-cis">$1,245</h1>
9191
<p id="cis-button-default" hidden>
9292
<a
9393
class="btn btn-primary addon-button"
94-
name="{{site.data.products.CIS.key}}"
94+
name="{{site.products.CIS.key}}"
9595
data-addon-action-type="Add"
96-
data-product-id="{{site.data.products.CIS.stripeProductId}}"
96+
data-product-id="{{site.products.CIS.stripeProductId}}"
9797
>Add to Subscription
9898
<i
9999
class="fa fa-angle-double-right fa-lg"

pages/checkout/_checkout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ <h5 class="margin-top-none text-center no-anchor">
168168
</div>
169169
</div>
170170
</div>
171-
<form action="https://app.gruntwork.io/checkout">
171+
<form action="{{ site.developer_portal_url }}/checkout">
172172
<input type="hidden" name="cart" value="" />
173173
<input type="hidden" name="editUrl" value="" />
174174
<button

0 commit comments

Comments
 (0)