This is the top level project for v2 of the MARCO Portal.
lesscss ~
npm install --global less
vagrant up
vagrant ssh
At this point, you will have an empty database. You may want to load a production DB dump (see below).
Otherwise, (within the VM:)
dj createsuperuser
dj loaddata --app data_manager data_manager_fixture
djrun
This will make the app accessible on the host machine as http://localhost:8111/ . The codebase is located on the host machine, exported to the VM as a shared folder; code editing and Git operations will generally be done on the host.
To build the assets, you'll need Node.JS installed, either on your host or in Vagrant.
Then, from the project root:
cd marco_site/assets
npm install
./node_modules/.bin/gulp
In the webfaction interface, remove the 'marco_portal2' app at /
and replace
with the maintenance page. Takes about 60 seconds to activate. Test out (http://midatlantic.point97.io)[http://midatlantic.point97.io]
to confirm.
- Elasticsearch
- Redis
- Postgresql DB
- Clone the repo
- Copy
marco_config/settings/local.template.py
aslocal.py
and customize. pip install --src ./deps -r requirements.txt
- createsuperuser
DJANGO_SETTINGS_MODULE="marco_config.settings.production" ./manage.py migrate update_index createsuperuser
- for now, rsync marco_site/static/ from your development instance (or run gulp from that dir on the server, if node is available)
- Run
DJANGO_SETTINGS_MODULE="marco_config.settings.production" ./manage.py compress collectstatic
pg_dump -U marco_portal marco_portal > dump.pg
(password from local.py)
rsync -avz [email protected]:webapps/marco_portal2/site/dump.pg ./
drop/create
psql -U postgres marco_portal < dump.pg