Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #15 from seanmonstar/awsbox

AWSBOX!
  • Loading branch information...
commit 3494dacf3247554591a13138b83ebb0e6462d0c4 2 parents eabf4a7 + 48dc313
@lloyd lloyd authored
View
11 .awsbox.json
@@ -0,0 +1,11 @@
+{
+ "processes": [
+ "bin/eyedeeme"
+ ],
+ "hooks": {
+ "postcreate": "scripts/post_create.sh"
+ },
+ "packages": [
+ "mysql-server"
+ ]
+}
View
4 lib/db.js
@@ -7,8 +7,8 @@ var _client;
var
db_host = exports.db_host = '127.0.0.1',
db_port = 3306,
-db_user = 'eyedeeme';
-db_pass = undefined;
+db_user = 'eyedeeme',
+db_pass = undefined,
db_name = 'eyedeeme';
if (process.env['MYSQL_URL']) {
View
3  package.json
@@ -11,6 +11,9 @@
"bcrypt": "0.5.0",
"postprocess": "0.2.4"
},
+ "devDependencies": {
+ "awsbox": "*"
+ },
"scripts": {
"start": "bin/eyedeeme"
}
View
7 scripts/post_create.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+sudo /sbin/chkconfig mysqld on
+sudo /sbin/service mysqld start
+echo "CREATE USER 'eyedeeme'@'localhost';" | mysql -u root
+echo "CREATE DATABASE eyedeeme;" | mysql -u root
+echo "GRANT ALL ON eyedeeme.* TO 'eyedeeme'@'localhost';" | mysql -u root
Please sign in to comment.
Something went wrong with that request. Please try again.