Skip to content

Commit

Permalink
Reverted change back to chowning apache:apache for tmp and resources …
Browse files Browse the repository at this point in the history
…directory so that apache can access those directories
  • Loading branch information
davidbyoung committed Aug 25, 2019
1 parent 048dc19 commit 14e6fa4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ target_dir=$html_dir/releases/$BUILD_ID
echo "rsync'ing to host"
rsync -aq --delete-after --rsync-path="mkdir -p $target_dir/ && rsync" "$SOURCE_DIR" $SSH_USER@$SSH_HOST:$target_dir/

# Need to change the owner of some directories that will be written to by our CI user
echo "Creating symlinks and swapping"
ssh $SSH_USER@$SSH_HOST <<EOF
cp -vrf $html_dir/.env.app.php $target_dir/config/environment/.env.app.php
sudo chown -R 1000:48 $target_dir/resources
sudo chown -R 1000:48 $target_dir/tmp
sudo chown -R 48:48 $target_dir/resources
sudo chown -R 48:48 $target_dir/tmp
sudo chmod -R 755 $target_dir/resources
sudo chmod -R 755 $target_dir/tmp
php $target_dir/apex framework:flushcache
Expand Down

0 comments on commit 14e6fa4

Please sign in to comment.