Comments (4)
chef
Sent from my iPhone
On Apr 18, 2013, at 1:23 PM, Marshall Jones [email protected] wrote:
What is the best way to replace configuration variables into the html files as part of the build process so we can switch analytics accounts etc?
—
Reply to this email directly or view it on GitHub.
from balanced-dashboard.
In the past (for a non-grunt build system) I've had the HTML file be handlebars templated and modified the context variable that gets passed into that template based on an environment variable. Some Googling came across grunt-env and grunt-preprocess that seem like they could handle this.
On simpler projects, I've just had different HTML files for each environment, but that gets hairy as the number of environments grows and your HTML file gets more complicated. You end up with a lot of duplicate code, so probably not advisable.
from balanced-dashboard.
the issue with chef is it would need to know how to construct the file. since it's static html it needs to be injected into the file at build time. a build command that pulls them from a file (which can be stored in a chef recipe) would work.
having a settings.ini
file which is used sounds good and then chef could overwrite this in our CI environment as part of the build/deploy process. bonus points if it can read from a file specified by BALANCED_ENV
which selectively overrides the default settings which means less duplication.
the other benefit of pulling in from a static file is it will make it easier for people to replicate the build process locally.
from balanced-dashboard.
Completed by @kleinsch
from balanced-dashboard.
Related Issues (20)
- Labeling on invoices is inconsistent
- Invoice page is displaying dollar amount of credit invoice as the count
- Funding instruments not showing up for customer
- ACH Debit/Credit cancellation button
- Bank account removal reasons not displayed anymore HOT 4
- Let's add name of customer to the CSV export rather than just Guid HOT 3
- Date filter in the search modal is broken HOT 1
- When disputes go into arbitration, we should find a way to present information about it
- It might be useful to see AVS/CVV results on a Card page on the dashboard
- Use new invoicing schema to get invoice charges
- Failed refunds are not shown for Debits
- Dashboard should make using orders the default HOT 1
- Add debit id to refund entry in CSV export HOT 2
- "Appears on statement as" --> "Billing descriptor"? HOT 2
- Can't view bank account verification events from the dashboard
- Disputes should include more detailed information
- Dashboard should make it clear that dispute evidence is provided to the card brand, not Balanced
- Error when adding user to test marketplace
- Notifications stacking and not responding to events
- XSS potential on bank account read screen HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balanced-dashboard.