diff --git a/study-sync-000/.ebextensions/001_envar.config b/study-sync-000/.ebextensions/001_envar.config new file mode 100644 index 0000000..5a9f821 --- /dev/null +++ b/study-sync-000/.ebextensions/001_envar.config @@ -0,0 +1,3 @@ +option_settings: + aws:elasticbeanstalk:application:environment: + NODE_ENV: production \ No newline at end of file diff --git a/study-sync-000/.elasticbeanstalk/config.yml b/study-sync-000/.elasticbeanstalk/config.yml new file mode 100644 index 0000000..deb1e2a --- /dev/null +++ b/study-sync-000/.elasticbeanstalk/config.yml @@ -0,0 +1,21 @@ +branch-defaults: + master: + environment: study-sync-prod +environment-defaults: + study-sync-prod: + branch: master + repository: study-sync +global: + application_name: study-sync + branch: master + default_ec2_keyname: null + default_platform: Node.js 14 running on 64bit Amazon Linux 2 + default_region: us-east-1 + include_git_submodules: true + instance_profile: null + platform_name: null + platform_version: null + profile: null + repository: study-sync + sc: git + workspace_type: Application diff --git a/study-sync-000/.gitignore b/study-sync-000/.gitignore new file mode 100644 index 0000000..39c3192 --- /dev/null +++ b/study-sync-000/.gitignore @@ -0,0 +1,4 @@ +node_modules +# Elastic Beanstalk Files +!.elasticbeanstalk/*.cfg.yml +!.elasticbeanstalk/*.global.yml diff --git a/study-sync-000/app.js b/study-sync-000/app.js index 4dda75a..8e8d656 100644 --- a/study-sync-000/app.js +++ b/study-sync-000/app.js @@ -1,3 +1,5 @@ +/*global m*/ +var m; var data = { title: 'Hello World!', selected: null, @@ -59,5 +61,9 @@ var App = { ]) } } +if(m !== undefined){ + m.mount(document.body, App); +} + + -m.mount(document.body, App) diff --git a/study-sync-000/index.html b/study-sync-000/index.html index fed1d49..0eff2e4 100644 --- a/study-sync-000/index.html +++ b/study-sync-000/index.html @@ -7,7 +7,7 @@
- + -