Browse files

adding awsbox

  • Loading branch information...
1 parent f685f33 commit 7ce94a54c3b170c166cf1ad5079af76b60dabeb6 @seanmonstar seanmonstar committed Aug 27, 2012
Showing with 21 additions and 0 deletions.
  1. +11 −0 .awsbox.json
  2. +3 −0 package.json
  3. +7 −0 scripts/post_create.sh
View
11 .awsbox.json
@@ -0,0 +1,11 @@
+{
+ "processes": [
+ "bin/eyedeeme"
+ ],
+ "hooks": {
+ "postcreate": "scripts/post_create.sh"
+ },
+ "packages": [
+ "mysql-server"
+ ]
+}
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

0 comments on commit 7ce94a5

Please sign in to comment.