Skip to content

Instantly share code, notes, and snippets.

@FinalAngel
Last active December 24, 2015 13:39
Show Gist options
  • Save FinalAngel/6807136 to your computer and use it in GitHub Desktop.
Save FinalAngel/6807136 to your computer and use it in GitHub Desktop.
Migrating old projects to Makefile structure

Updating to Makefile

To make it easier for everyone to setup projects, we use the following commands to init, update and running:

make init (creating startup point, requires additional infos within the readme) make update (autoupdates project, commit all changes) make run (runs the project)

Additional commands are available depending on the project, always check the Makefile to ensure.

How to migrate

We use the fidea-project as a reference to steup hpo-project.

  1. Clone the project
  2. Ensure a proper Readme.rst is available, use the reference as a guideline.
  3. Change the database command within Readme.rst to reflect the projects name, we need this name later to setup personal.py
  4. Copy the Makefile into the projec
  5. Make sure that the project doesnt use sass, if there is a sass folder change the css: command to point to the right config.rb like compass watch py_src/project. See autofaszination-project as a reference.
  6. Check the .init.sh file, you might want to copy the reference init as bootstrap.py might fail when running make init
  7. Change the personal.cfg-dist to include the additional eggs (copy the file from fidea)
  8. Change the py_src/project/settings/personal.py-dist and enter the correct database informations using postgres. Ideally you can copy the reference personal.py-dist and change the db name.

Thats it, now you should be able to continue with the instructions from the readme.

Troubleshoot

Error: Bad constraint 1.2.0 Django>=1.4
Update the Django version within version.cfg to Django = 1.4.0.

Warning: Command(s) not found: pg.download
This means this project uses mysql, see hpo-project for mysql setup and update accordingly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment