fix vagrant locale

This commit is contained in:
Rei
2014-04-25 18:12:35 +08:00
parent 6428c72746
commit 0b4d443d6d
2 changed files with 7 additions and 10 deletions

View File

@@ -3,10 +3,6 @@
USER=`whoami`
APP_ROOT=/var/www/campo
# Fix postgresql default encoding
sudo update-locale LC_ALL="en_US.utf8"
export LC_ALL=en_US.UTF-8
sudo apt-get update
# Install system packages
@@ -43,7 +39,7 @@ cp config/database.example.yml config/database.yml
cp config/secrets.example.yml config/secrets.yml
cp config/config.example.yml config/config.yml
bundle install
bundle exec rake db:create:all
bundle exec rake db:create:all db:setup
# Production environment
sudo mkdir -p $APP_ROOT