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

Add deployment script

parent 7e88d454
...@@ -73,14 +73,7 @@ module.exports = function ( grunt ) { ...@@ -73,14 +73,7 @@ module.exports = function ( grunt ) {
* pairs are evaluated based on this very configuration object. * pairs are evaluated based on this very configuration object.
*/ */
meta: { meta: {
banner: 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'
}, },
/** /**
......
#!/bin/bash
grunt compile
...@@ -4,6 +4,7 @@ ARGUMENTS= ...@@ -4,6 +4,7 @@ ARGUMENTS=
ARGUMENTS+= -v ./etc/:/app/etc/ ARGUMENTS+= -v ./etc/:/app/etc/
DIR=$(shell pwd) DIR=$(shell pwd)
DEPLOY_PATH=/var/www/richard.kompiler.org/tapdance/
build: build:
docker build -t pixi-game . docker build -t pixi-game .
...@@ -11,6 +12,9 @@ build: ...@@ -11,6 +12,9 @@ build:
run: run:
docker run --rm -ti -p 8282:80 -v $(DIR)/src/:/app/src/ pixi-game 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 # inside docker
install: install:
./etc/bootstrap.sh ./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 @@ ...@@ -4,11 +4,11 @@
<title ng-bind="pageTitle"></title> <title ng-bind="pageTitle"></title>
<meta name="viewport" content="width=device-width, minimal-ui, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, minimal-ui, initial-scale=1, maximum-scale=1, user-scalable=no">
<!-- compiled CSS --><% styles.forEach( function ( file ) { %> <!-- compiled CSS -->
<link rel="stylesheet" type="text/css" href="<%= file %>" /><% }); %> <link rel="stylesheet" type="text/css" href="assets/Interactive-0.3.2.css" />
<!-- compiled JavaScript --><% scripts.forEach( function ( file ) { %> <!-- compiled JavaScript -->
<script type="text/javascript" src="<%= file %>"></script><% }); %> <script type="text/javascript" src="assets/Interactive-0.3.2.js"></script>
</head> </head>
<body> <body>
<div class="container" ui-view="main"> <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