Commit Graph

39 Commits

Author SHA1 Message Date
Martyn Inglis
76ccb99666 Fixed up the health check page 2016-03-03 16:41:21 +00:00
Chris Hill-Scott
5b073341a0 Add frontend install and build to bootstrap script
Now you don’t need to remember what the two commands are and when you need to
run them, you can just run the bootstrap script instead.

Makes sense to have them here since the `pip install` is also in here.
2016-03-03 07:54:14 +00:00
Chris Hill-Scott
0201825c45 Add linting for SASS and Javascript
Similar to how PEP8 enforces Python style, there are tools for front end code:
- jshint[1] for Javascript
- sass-lint[2] for SASS

This commit adds the Gulp plugins for both, and sets up some sensible rules
(which can be iterated on).

It also adds a command to `./scripts/run_tests.sh`, so that any errors in the
front end code will fail the build before it has a chance to be deployed.

1. http://jshint.com/
2. https://www.npmjs.com/package/sass-lint
2016-02-08 12:02:22 +00:00
Nicholas Staples
c3b2fc1ca2 push-tag file added. 2016-01-29 14:42:45 +00:00
Nicholas Staples
5565fef27b Remove db commands from bootstrap. 2016-01-27 16:39:24 +00:00
Martyn Inglis
35b711f956 No db updates on admin app 2016-01-19 21:54:31 +00:00
Martyn Inglis
ca36b56d4c Run start/stop as ubuntu 2016-01-19 21:26:45 +00:00
Martyn Inglis
e075145945 Putting this back in the dependencies file for now
- this fails on the instance and not sure why, putting back till I can figure it out
2016-01-11 17:32:24 +00:00
Martyn Inglis
35b4f8f3a7 Removed the db upgrades 2016-01-11 17:23:10 +00:00
Martyn Inglis
362b2aeba7 New script to run db updates so can be done by ubuntu user 2016-01-11 17:00:04 +00:00
Martyn Inglis
63c87f10e7 Needed own file for db scripts. Need to compartmentalise running the app and the db upgrades into differing scripts. 2016-01-10 22:16:26 +00:00
Martyn Inglis
60f6601845 Copy the db upgrade command into WSGI script.
In there currently as wsgi has the credstash which we don't won't to apply in non-awe environments. This will need a refactor to better handle code duplication.
2016-01-10 21:53:41 +00:00
Martyn Inglis
cd1af56548 Fix python3/2 issues 2016-01-07 16:13:25 +00:00
Martyn Inglis
5cf3259dbf Fix python3/2 issues 2016-01-07 16:12:34 +00:00
Martyn Inglis
ef8964284c Integrated logging from the utils repo 2016-01-07 15:39:36 +00:00
Martyn Inglis
6943c88c48 Putting AWS back 2016-01-06 09:40:53 +00:00
Chris Hill-Scott
5ebeec08ae Use a Node-based tools for handling assets
…or how to move a bunch of things from a bunch of different places into
`app/static`.

There are three main reasons not to use Flask Assets:
- It had some strange behaviour like only
- It was based on Ruby SASS, which is slower to get new features than libsass,
  and meant depending on Ruby, and having the SASS Gem globally installed—so
  you’re already out of being a ‘pure’ Python app
- Martyn and I have experience of doing it this way on Marketplace, and we’ve
  ironed out the initial rough patches

The specific technologies this introduces, all of which are Node-based:
- Gulp – like a Makefile written in Javascript
- NPM – package management, used for managing Gulp and its related dependencies
- Bower – also package management, and the only way I can think to have
  GOV.UK template as a proper dependency

…speaking of which, GOV.UK template is now a dependency. This means it can’t be
modified at all (eg to add a global `#content` wrapper), so every page now
inherits from a template that has this wrapper. But it also means that we have a
clean upgrade path when the template is modified.

Everything else (toolkit, elements) I’ve kept as submodules but moved them to a
more logical place (`app/assets` not `app/assets/stylesheets`, because they
contain more than just SASS/CSS).
2016-01-05 13:12:35 +00:00
Martyn Inglis
cbd47fe2ce Export flask config in set up script 2015-12-17 11:18:27 +00:00
Martyn Inglis
5492116d19 Path wrong on start script 2015-12-17 11:08:37 +00:00
Martyn Inglis
4af1c6131d Change ownership of app to ubuntu on deploy 2015-12-17 11:01:57 +00:00
Martyn Inglis
4ffadc39c4 Trap errors in stop script in AWS, and put heroku back as a deploy ganet 2015-12-16 14:15:51 +00:00
Martyn Inglis
2308867132 Install SASS gem 2015-12-16 11:02:54 +00:00
Martyn Inglis
e58c00c378 Updated to reflect changes to install dependencies and property reading 2015-12-07 13:41:33 +00:00
Martyn Inglis
ce34303a3d Renamed install dependencies
- also sets FLASK_CONFIG property so as to override properties to enable DB upgrade
2015-12-07 13:41:10 +00:00
Martyn Inglis
66537fca30 Setting ENV to live and read config on non-dev environments from a file. 2015-12-07 11:30:29 +00:00
Martyn Inglis
0977877dcd AWS codedeploy start / stop scripts (upstart) and wsgi start script 2015-12-03 09:38:02 +00:00
Martyn Inglis
b1cad3f8f8 background the flask app. not for production consumption 2015-12-02 10:47:08 +00:00
Martyn Inglis
a6f357d8b3 Logging on dependencies 2015-12-02 10:15:46 +00:00
Martyn Inglis
18faa96dbd Adding logging into start script 2015-12-02 10:06:45 +00:00
Martyn Inglis
1b116ecf85 Added aws run script to use full path to application for codedeploy 2015-12-02 09:59:30 +00:00
Martyn Inglis
369de6b62e Added files to support AWS Code deploy 2015-11-30 15:44:16 +00:00
Rebecca Law
abe1d8ae17 108536234: created users and roles data and domain model.
You will need to run the /scripts/bootstrap.sh to create the database for test and the app.
2015-11-25 15:29:12 +00:00
Rebecca Law
11d79951f3 Moved the templates into the app directory.
Added Manager to the app.py
2015-11-23 16:07:19 +00:00
Rebecca Law
d6c81d581d Start to create views 2015-11-20 16:22:44 +00:00
Rebecca Law
a5d6cc4a5e Change name of functional test project 2015-11-20 10:37:59 +00:00
Rebecca Law
010b8ae153 chmod on trigger dependent build script 2015-11-20 09:54:55 +00:00
Rebecca Law
feb3b14a0a Add trigger dependent build and slack notification 2015-11-20 09:51:42 +00:00
Rebecca Law
83a1dbd79d Added a blank test 2015-11-18 16:52:43 +00:00
Rebecca Law
29012c78ee Initial creation of notify-admin-frontend 2015-11-18 16:19:40 +00:00