Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions study-sync-000/.ebextensions/001_envar.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
option_settings:
aws:elasticbeanstalk:application:environment:
NODE_ENV: production
21 changes: 21 additions & 0 deletions study-sync-000/.elasticbeanstalk/config.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions study-sync-000/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
# Elastic Beanstalk Files
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
8 changes: 7 additions & 1 deletion study-sync-000/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*global m*/
var m;
var data = {
title: 'Hello World!',
selected: null,
Expand Down Expand Up @@ -59,5 +61,9 @@ var App = {
])
}
}
if(m !== undefined){
m.mount(document.body, App);
}



m.mount(document.body, App)
4 changes: 2 additions & 2 deletions study-sync-000/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</title>
</head>
<body>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mithril/2.0.4/mithril.min.js' type='text/javascript'></script>
<script src='./mithril.min.js' type='text/javascript'></script>
<script src='./app.js' type='text/javascript'></script>
</body>
</html>
</html>
6 changes: 5 additions & 1 deletion study-sync-000/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ app.get('/app.js', function(req, res) {
res.sendFile(path.join(__dirname + '/app.js'));
});

app.get('/mithril.min.js', function(req, res) {
res.sendFile(path.join(__dirname + '/mithril.min.js'));
});

console.log(`PLANNING TO USE PORT: ${port}`)
app.listen(port, '0.0.0.0', () => console.log(`Listening on port ${port}!`))
app.listen(port, '0.0.0.0', () => console.log(`Listening on port ${port}!`))
1 change: 1 addition & 0 deletions study-sync-000/mithril.min.js

Large diffs are not rendered by default.

Loading