-
Notifications
You must be signed in to change notification settings - Fork 0
Home
gy is back. And this time it's on github.
gy is in a very early state. Giving install instructions does not really make sense, yet (so it does run, rudimentarily). Put here is a description of how to make it work for development purposes.
Don't do any of the following as root! Part of the point of doing the virtualenv stuff is for you not to need root privileges (and making it impossible to destroy anything by accident).
There is no good reason not to work with a virtual python environment, so you should set one up (as learned from pyramid docs):
kra@var ~/gy $ virtualenv --no-site-packages env
This creates you a virtual environment for the work with gy, so you wont mess up your system with any dependency packages. The --no-site-packages is not really needed with current versions of virtualenv. I also add -ppython2.6, because the web server my projects are hosted on runs python2.6.
Now you have set up your gy-python-environment. Enter it by:
kra@var ~/gy $ source env/bin/activate
(env)kra@var ~/gy $
You can see that you are inside the env by the (env). Now clone and enter gy e.g. by:
(env)kra@var ~/gy $ git clone git@github.com:kratenko/gy.git gy
...
(env)kra@var ~/gy $ cd gy
(env)kra@var ~/gy/gy $
When you work with gy, you should always enter the env before starting (by using the source env/bin/activate command, not the virtualenv command). Now to fix the setup (get dependencies, etc, will take a while...).
(env)kra@var ~/gy/gy $ python setup.py develop
Initialize the database:
(env)kra@var ~/gy/gy $ initialize_gy_db development.ini
And now it should work:
(env)kra@var ~/gy/gy $ pserve development.ini
Visit http://localhost:6543/ with your favorite browser. If we did all deps correctly (and fixed that sqlite-blog-issue) you should see the application.
The basic idea: everything in gy is an item.