You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alexander Wong 1acf5adef6
guardian with pwhash
6 months ago
.vscode Hello world with routes 6 months ago
assets guardian with pwhash 6 months ago
config guardian with pwhash 6 months ago
lib guardian with pwhash 6 months ago
priv guardian with pwhash 6 months ago
test guardian with pwhash 6 months ago
.formatter.exs mix phx.new ampersand 6 months ago
.gitignore prod secrets in env variables 6 months ago
Procfile Use production config from Heroku ENV variables and decrease socket timeout 6 months ago
README.md added static buildpack, readme 6 months ago
elixir_buildpack.config Use production config from Heroku ENV variables and decrease socket timeout 6 months ago
mix.exs guardian with pwhash 6 months ago
mix.lock guardian with pwhash 6 months ago

README.md

Ampersand

To start a local postgres instance:

docker pull postgres:11
mkdir -p $HOME/docker/volumes/postgres
docker run \
  --rm \
  --name pg-docker \
  --env POSTGRES_DB=ampersand_dev \
  --env POSTGRES_USER=postgres \
  --env POSTGRES_PASSWORD=postgres \
  --publish 5432:5432 \
  --volume $HOME/docker/volumes/postgres:/var/lib/postgresql/data \
  --detach \
  postgres:11

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Heroku Deplopyment

Instructions found in the Heroku hexdocs.

git push heroku master
heroku run "POOL_SIZE=2 mix ecto.migrate"

Learn more