brandonjah / blast

0 stars 0 forks source link

== README

http://blowfish.stage.staging.c66.me/ http://bobcat.blast.c66.me/

admin@socialblast.com

run delayed jobs

rake jobs:work

GIT info

git pull git add . git commit -am "this is a commit message" git push

CLOUD 66 INFO

cx executable is in /usr/local/bin

cx redeploy -s stage cx redeploy -s blast

Usage: cx [-s stack] [-e environment] [options] [arguments]

Commands:

stacks           list stacks
redeploy         redeploys stack
open             opens the web browser to visit the app served by the stack
settings         lists stack settings
set              sets the value of a setting on a stack
server-settings  lists server settings
server-set       sets the value of a setting on a server
env-vars         lists environement variables
env-vars-set     sets the value of an environment variable on a stack
lease            leases firewall access to the given server on the stack
restart          restarts the stack.
run              executes a command directly on the server
servers          lists all the servers of a stack.
ssh              starts a ssh shell into the server
tail             shows and tails the logfile specified on the given server
upload           copies a file from your local computer to the remote server
download         copies a file from the remote server to your local computer
backups          lists all the managed backups of a stack
download-backup  downloads a database backup
clear-caches     clears all existing stack code caches
version          show cx version
info             shows information about your account, toolbelt and the current directory or the specified stack

logout

Delayed job - Cloud66

Procfile in root of application starts the worker

Connecting to servers Cloud66

Connect to PSQL:

cx ssh -s stage Blowfish ! no longer in existence
cx ssh -s blast Bobcat
sudo -u postgres psql

Run migration:

cd $STACK_PATH
bundle exec rake db:migrate

View logs: cd $STACK_PATH/log/

TO START WORKING LOCALLY:

TO MAKE PROJECT EDITS: