Skip to content

Commit

Permalink
fixes to get running locally
Browse files Browse the repository at this point in the history
as of writing, these commands were needed to unbork postgres/ecto:

sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo /etc/init.d/postgresql restart

see elixir-ecto/ecto#1207 jjahraus's 9 Nov 2016 comment
  • Loading branch information
dansgithubuser committed Sep 10, 2017
1 parent 0c65eb4 commit 97c9347
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions go.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/usr/bin/env python

def invoke(invocation):
import subprocess
def invoke(invocation, path='.'):
import os, subprocess
start=os.getcwd()
os.chdir(path)
subprocess.check_call(invocation, shell=True)
os.chdir(start)

import argparse
parser=argparse.ArgumentParser()
Expand All @@ -13,6 +16,7 @@ def invoke(invocation):
if args.build:
invoke('mix deps.get')
invoke('mix deps.compile')
invoke('npm install', 'assets')

if args.run:
invoke('mix phx.server')

0 comments on commit 97c9347

Please sign in to comment.