Skip to content

Instantly share code, notes, and snippets.

@fpigeonjr
Created July 12, 2014 06:57
Show Gist options
  • Save fpigeonjr/1ebca053be4eee1c67ea to your computer and use it in GitHub Desktop.
Save fpigeonjr/1ebca053be4eee1c67ea to your computer and use it in GitHub Desktop.
codeup site config

Database Setup (Once)

  • Update mysql script with user: codeup
  • Run mysql user create script (codeup): ansible-playbook ansible/mysql-user-db.yml -l digital_ocean -e "mysql_admin=true"
  • Connect to server via SequelPro.

New Site Setup (For each new site)

  • Update mysql script to add codeup user.
  • Run site create script: ansible-playbook ansible/site-create.yml -l digital_ocean -e "domain=myblog.com" --ask-sudo-pass
  • Add git remote. (cd sites/blog.dev)
  • Create new database (blog_db).
  • update database.php config and commit.
  • git push web master
  • SSH into server and create .env.php
  • ssh codeup@ipaddress
  • cd /srv/www/myblog.com
  • composer install
  • php artisan migrate --seed
  • add domain name to local hosts file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment