Commit 5ec326e8 authored by Richard Torenvliet's avatar Richard Torenvliet

Add deployment script

parent 7e88d454
......@@ -73,14 +73,7 @@ module.exports = function ( grunt ) {
* pairs are evaluated based on this very configuration object.
*/
meta: {
banner:
'/**\n' +
' * <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * <%= pkg.homepage %>\n' +
' *\n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
' * Licensed <%= pkg.licenses.type %> <<%= pkg.licenses.url %>>\n' +
' */\n'
banner: ""
},
/**
......
#!/bin/bash
grunt compile
......@@ -4,6 +4,7 @@ ARGUMENTS=
ARGUMENTS+= -v ./etc/:/app/etc/
DIR=$(shell pwd)
DEPLOY_PATH=/var/www/richard.kompiler.org/tapdance/
build:
docker build -t pixi-game .
......@@ -11,6 +12,9 @@ build:
run:
docker run --rm -ti -p 8282:80 -v $(DIR)/src/:/app/src/ pixi-game
deploy:
docker run --rm -ti -v $(DEPLOY_PATH):/app/bin/ pixi-game ./etc/deploy.sh
# inside docker
install:
./etc/bootstrap.sh
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,11 +4,11 @@
<title ng-bind="pageTitle"></title>
<meta name="viewport" content="width=device-width, minimal-ui, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- compiled CSS --><% styles.forEach( function ( file ) { %>
<link rel="stylesheet" type="text/css" href="<%= file %>" /><% }); %>
<!-- compiled CSS -->
<link rel="stylesheet" type="text/css" href="assets/Interactive-0.3.2.css" />
<!-- compiled JavaScript --><% scripts.forEach( function ( file ) { %>
<script type="text/javascript" src="<%= file %>"></script><% }); %>
<!-- compiled JavaScript -->
<script type="text/javascript" src="assets/Interactive-0.3.2.js"></script>
</head>
<body>
<div class="container" ui-view="main">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment