Here are the steps to update Phoenix Live SaaS Kit for Fly and Phoenix 1.6.9:
git init,git add .,git commit -m "init repo"- Remove generated docker & deploy script files
build.shdocker-entrypoint.sh.dockerignoreDockerfile
| postgres: | |
| image: postgres:9.4 | |
| volumes: | |
| - ./init.sql:/docker-entrypoint-initdb.d/init.sql |
Here are the steps to update Phoenix Live SaaS Kit for Fly and Phoenix 1.6.9:
git init, git add ., git commit -m "init repo"build.shdocker-entrypoint.sh.dockerignoreDockerfileCommand Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.
| ["Life isn’t about getting and having, it’s about giving and being.", "Kevin Kruse"] | |
| ["Whatever the mind of man can conceive and believe, it can achieve.", "Napoleon Hill"] | |
| ["Strive not to be a success, but rather to be of value.", "Albert Einstein"] | |
| ["Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "Robert Frost"] | |
| ["I attribute my success to this: I never gave or took any excuse.", "Florence Nightingale"] | |
| ["You miss 100% of the shots you don’t take.", "Wayne Gretzky"] | |
| ["I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "Michael Jordan"] | |
| ["The most difficult thing is the decision to act, the rest is merely tenacity.", "Amelia Earhart"] | |
| ["Every strike brings me closer to the next home run.", "Babe Ruth"] | |
| ["Definiteness of purpose is the starting point of all achievement.", "W. |
| { | |
| "quotes": [ | |
| { | |
| "quote":"Life isn’t about getting and having, it’s about giving and being.","author":"Kevin Kruse"}, | |
| { | |
| "quote":"Whatever the mind of man can conceive and believe, it can achieve.","author":"Napoleon Hill"}, | |
| { | |
| "quote":"Strive not to be a success, but rather to be of value.","author":"Albert Einstein"}, | |
| { |
| [ | |
| { | |
| "text":"The only people who never fail are those who never try.", | |
| "from":"Ilka Chase" | |
| }, | |
| { | |
| "text":"Failure is just another way to learn how to do something right.", | |
| "from":"Marian Wright Edelman" | |
| }, | |
| { |
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install [email protected] | |
| brew unlink [email protected] | |
| brew link postgresql |