• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alphagov / digitalmarketplace-admin-frontend / 5771
95%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2019 03:27PM UTC
Jobs 1
Files 29
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5771

Pull #587

travis-ci-com

Laurence de Bruxelles
Allow overriding development server port and api port

There are times when we might want to change the port that the api
server listens on in development mode; this commit makes this easier by
adding an additional configuration variable `DM_API_PORT` that can
be set in the environment. We then construct the existing
`DM_DATA_API_URL` configuration variable from this.

The api uses this same environment variable to determine what port it
listens on; see alphagov/digitalmarketplace-api#986. This way we can
change the entire system by changing one environment variable.

This commit adds `DM_API_PORT` to the `.flaskenv` configuration file;
this works because `python-dotenv` does not override existing
environment variables.

We also use `DM_ADMIN_PORT` as the port for the admin frontend
development server by setting `FLASK_RUN_PORT`; see [the Flask cli
docs][1] for more details on how the development server is configured.

[1]: http://flask.palletsprojects.com/en/1.0.x/cli/
Pull Request #587:

1142 of 1196 relevant lines covered (95.48%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5771.1 01 Nov 2019 03:27PM UTC 0
95.48
Travis Job 5771.1
Source Files on build 5771
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #5771
  • Pull Request #587
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc