@@ -11,6 +11,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
11
11
sudo locale-gen en_US.UTF-8
12
12
# Make sure we have up-to-date stuff
13
13
sudo apt-get update
14
+ sudo apt-get install -y php5-intl
14
15
fi
15
16
# Install dependencies
16
17
sudo apt-get install -y apache2 libapache2-mod-php5 php-pear php5-curl php5-sqlite php5-mysql acl curl git
37
38
HTTPDUSER=` ps aux | grep -E ' [a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
38
39
39
40
sudo mkdir -p /opt/codebender
40
- sudo cp -r . /opt/codebender/$PACKAGENAME
41
+ sudo cp -r ./ /opt/codebender/$PACKAGENAME
41
42
sudo chown -R ` whoami` :$HTTPDUSER /opt/codebender/$PACKAGENAME
42
43
cd /opt/codebender/$PACKAGENAME
43
44
@@ -86,9 +87,7 @@ cd Symfony
86
87
# # For reference, here's a command to replace a substring in a file
87
88
# # cat kourades.sh | sed 's/kourades/skata/g' | tee skata.sh > /dev/null 2>&1
88
89
89
- # cp app/config/parameters.yml.dist app/config/parameters.yml
90
- cat app/config/parameters.yml.dist | sed ' s/database_pass: ~/database_pass: hello/g' > app/config/parameters.yml
91
-
90
+ cp app/config/parameters.yml.dist app/config/parameters.yml
92
91
93
92
set +x
94
93
cat app/config/parameters.yml | grep -v " compiler:" | tee app/config/parameters.yml > /dev/null
@@ -101,10 +100,6 @@ set -x
101
100
102
101
curl -s http://getcomposer.org/installer | php
103
102
php composer.phar install
104
- # php app/console doctrine:database:create
105
- # php app/console doctrine:schema:create
106
- # yes | php app/console doctrine:fixtures:load
107
- # php app/console codebender:tests:install
108
103
109
104
# TODO: Add this later on (Apache config)
110
105
# sudo cp /opt/codebender/$PACKAGENAME/apache-config /etc/apache2/sites-available/codebender
0 commit comments