This tutorial explains how to deploy automatically from bitbucket (or github) to AWS S3.
- Go to Create Application
- Select use bitbucket (or github)
- Choose your repo
- For the next questions, choose the default answers
| <ion-select [(ngModel)]="state"> | |
| <ion-option value="ACT">Australian Capital Territory</ion-option> | |
| <ion-option value="NSW">New South Wales</ion-option> | |
| <ion-option value="NT ">Northern Territory</ion-option> | |
| <ion-option value="QLD">Queensland</ion-option> | |
| <ion-option value="SA ">South Australia</ion-option> | |
| <ion-option value="TAS">Tasmania</ion-option> | |
| <ion-option value="VIC">Victoria</ion-option> | |
| <ion-option value="WA ">Western Australia</ion-option> | |
| </ion-select> |
| function retrievePagesSequentially() { | |
| var index = 1; | |
| function request() { | |
| return window.axios.get(`/api/cache/${index}`).then((response) => { | |
| let dataSet = response.data.length; | |
| jQuery('#headerTop').text(`${((index - 1) * 250) + dataSet} Orders`); | |
| ShopifyApp.flashNotice(`Page ${index} retrieved...`); | |
| index++; | |
| if (dataSet < 250) { | |
| setTimeout(() => { |
| <?php | |
| add_action( 'wp_head', 'mxms_google_analytics' ); | |
| function mxms_google_analytics() { | |
| ?><script> | |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
| ga('create', 'UA-0000000-0', 'auto'); | |
| ga('send', 'pageview'); |
| <?php | |
| echo date('j<\s\up>S</\s\up> M \'y'); // >= PHP 5.2.2 - 16th Feb '19 |
| let kelvin = 288; // Or whatever kelvin | |
| let celsius = ((5/9) * ((Math.floor((Number(kelvin)-273) * (9/5) + 32))-32)).toFixed(0) |
| toHHMMSS(secs: number) { | |
| var sec_num = parseInt(Math.abs(secs), 10); | |
| var hours = Math.floor(sec_num / 3600); | |
| var minutes = Math.floor((sec_num - (hours * 3600)) / 60); | |
| var seconds = sec_num - (hours * 3600) - (minutes * 60); | |
| if (hours < 10) {hours = "0"+hours;} | |
| if (minutes < 10) {minutes = "0"+minutes;} | |
| if (seconds < 10) {seconds = "0"+seconds;} | |
| if(hours > 0) { | |
| return hours+'h '+minutes+'m '+seconds+'s'; |
| {% if template contains 'collection' and current_tags %} | |
| <meta name="robots" content="noindex" /> | |
| <link rel="canonical" href="{{ shop.url }}{{ collection.url }}" /> | |
| {% elsif template contains 'blog' and current_tags %} | |
| <meta name="robots" content="noindex" /> | |
| <link rel="canonical" href="{{ shop.url }}{{ blog.url }}" /> | |
| {% else %} | |
| {%- if canonical_url != blank -%} | |
| <link rel="canonical" href="{{ canonical_url }}" /> | |
| {% endif %} |
| {% if template == 'index' %} | |
| fetch('https://api.ipregistry.co/?key=tryout') | |
| .then(function (response) { | |
| return response.json(); | |
| }) | |
| .then(function (payload) { | |
| if('Australia' == payload.location.country.name){ | |
| $('#international-notice').show(); | |
| } | |
| }); |
Step 1.) Delete your iOS, Android & Node modules folder
rm -rf android && rm -rf ios && rm -rf node_modulesStep 2.) Adjust your package.json to include the following:
"@capacitor/android": "^2.4.5",