Skip to content

Commit

Permalink
Change to heroku/heroku-buildpack-php
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Tat committed Aug 29, 2014
1 parent 6cc8f21 commit fbbd491
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 deletions.
6 changes: 6 additions & 0 deletions composer.json
@@ -0,0 +1,6 @@
{
"require": {
"ext-gd": "*",
"ext-mysql": "*"
}
}
11 changes: 7 additions & 4 deletions manifest.yml
@@ -1,6 +1,6 @@
applications:
- name: drupal
buildpack: https://github.com/ActiveState/heroku-buildpack-php.git
buildpack: https://github.com/heroku/heroku-buildpack-php.git
instances: 1
mem: 256M
services:
Expand All @@ -14,11 +14,14 @@ applications:
$STACKATO_APP_ROOT/drush/drush cron >>$STACKATO_APP_ROOT/logs/cron.log 2>&1"
hooks:
post-staging:
- sh www/stackato-setup.sh
- sh www/stackato-sso-workaround.sh
- sh stackato-setup.sh
- sh stackato-sso-workaround.sh
pre-running:
# Workaround to pass $VCAP_SERVICES to cron
- python www/vcap-workaround.py
- python vcap-workaround.py
min_version:
client: 1.4.3
requirements:
ubuntu:
- libjpeg62

14 changes: 7 additions & 7 deletions stackato-setup.sh
Expand Up @@ -17,16 +17,16 @@ if ! [ -s $HOME/index.php ]
mv drush $SAR

$SAR/drush/drush dl drupal --drupal-project-rename=drupal --yes
mv drupal/* drupal/.??* www/
mv drupal/* drupal/.??* .
rmdir drupal
fi

echo "Migrating data to shared filesystem..."
cp -r www/sites/* $FS/sites
cp -r sites/* $FS/sites

echo "Symlink to folders in shared filesystem..."
rm -fr www/sites
ln -s $FS/sites www/sites
rm -fr sites
ln -s $FS/sites sites

# allow custom profile installations (if exist)
if [ -s custom-profile.sh ]
Expand All @@ -37,11 +37,11 @@ fi
if ! [ -e $FS/INSTALLED ]
then
echo "Installing Drupal..."
$SAR/drush/drush -r $HOME/www site-install -y --db-url=$DATABASE_URL --account-name=admin --account-pass=passwd --site-name=Stackato --locale=en-US
$SAR/drush/drush -r $HOME site-install -y --db-url=$DATABASE_URL --account-name=admin --account-pass=passwd --site-name=Stackato --locale=en-US

echo "Installing Drupal modules..."
$SAR/drush/drush -r $HOME/www dl pathauto,views --yes
$SAR/drush/drush -r $HOME/www en pathauto,views_ui --yes
$SAR/drush/drush -r $HOME dl pathauto,views --yes
$SAR/drush/drush -r $HOME en pathauto,views_ui --yes

# Drupal successfully installed
touch $FS/INSTALLED
Expand Down
2 changes: 1 addition & 1 deletion stackato-sso-workaround.sh
@@ -1,6 +1,6 @@
#!/bin/bash

file=`dirname $0`"/includes/bootstrap.inc"
file="includes/bootstrap.inc"
line="$(sed -n '/is_https =/=' $file)"

# remove line that sets is_https
Expand Down

0 comments on commit fbbd491

Please sign in to comment.