jessepeterson / margarita

Web frontend for reposado
The Unlicense
244 stars 40 forks source link

can't get maragarita to run #15

Closed tallfunnyjew closed 11 years ago

tallfunnyjew commented 11 years ago

got me a working reposado which i love. so i wanted to give margarita a shot. got a git clone of margarita & flask. i've created the symlinks as instructed, but i'm missing something. when I navigate to the margarita folder (/etc/margarita on my OSX Lion server) and run: sh-3.2# python margarita.py

i get:

which i know can't be right because (a) that number ain't good and (b) no web browser launches.

perhaps someone can point me to a reference guide/walkthrough that can help me better understand what i've missed or screwed up. my best guess: i'm pointing my symlinks to the wrong place?

dunno.

tallfunnyjew commented 11 years ago

as a follow up, i've now tried several locations for what i thought my reposadolib location was. i've got two:

/Library/Python/2.7/site-packages/reposadolib /Users/!!!/reposado/code/reposadolib

jessepeterson commented 11 years ago

Actually - that output looks good. Margarita will not open a browser for you. Open a browser and browse to http://127.0.0.1:8089/ on that same machine, or open a URL to http://x.x.x.x:8089/ (using the IP address of the machine running Margarita in place of x.x.x.x). Give 'er a go and let me know. ;)

tallfunnyjew commented 11 years ago

hi jesse: thanks for the info. here's what i got when i browse my margarita folder and run the command:

sh-3.2# cd /etc/margarita/ sh-3.2# ls -l total 56 drwxr-xr-x 13 root wheel 442 Nov 12 16:14 .git -rw-r--r-- 1 root wheel 18 Nov 12 16:14 .gitignore -rw-r--r-- 1 root wheel 4088 Nov 12 16:14 README.md -rw-r--r-- 1 root wheel 598 Nov 12 16:14 com.github.jessepeterson.margarita.plist -rw-r--r-- 1 root wheel 4484 Nov 12 16:14 margarita.py lrwxr-xr-x 1 root wheel 32 Nov 12 16:46 preferences.plist -> /usr/local/bin/preferences.plist lrwxr-xr-x 1 root wheel 45 Nov 12 16:45 reposadolib -> /Library/Python/2.7/site-packages/reposadolib drwxr-xr-x 5 root wheel 170 Nov 12 16:14 static drwxr-xr-x 3 root wheel 102 Nov 12 16:14 templates sh-3.2# sudo -u _www python margarita.py

and when i point a browser to 127.0.0.1:8089...kaBLAMO! everything works. i misread your documentation and thought flask not only hosted the data but was also supposed to launch the browser and point to it.

(although that might not be a good idea to program in...? :)

cheers, mate. david