πŸš€ Deploying to CYF's hosted environment

Learn how to deploy your website to CYF’s hosted environment

CodeYourFuture has a hosting service which is offered to current trainees and recent graduates.

We attempt to make this environment reliable, fast to load, and simple to deploy to.

If you need support, please ask on Slack in #cyf-devops.

The CYF hosting service is a shared environment. You can access other users’ project config, and other users can access your project config. You should not host anything sensitive on it. We trust you to only modify your own projects.

Projects

Each website you host should be added as a project.

A project can consist of multiple components, for instance a project can contain a frontend, a backend, a database, and more. You do not need to create separate projects for your frontend and backend.

Because the CYF hosting service is a shared resource, you must start your project name with your GitHub username. We will delete any project which does not have a GitHub username as the first word of its name.

Making a project

After logging into https://hosting.codeyourfuture.io/:

Make sure your “Current Team” is set to “Hosting”

Select your team

Click on the “Projects” menu item

Click the Projects menu item

Click “Add”

Click “Add” project

Enter a project name - this must start with your GitHub username.

Enter a project name

Each project may have multiple environments - we will just use the production environment - click into the production environment.

Click into the production environment

Next, follow guides for adding specific components:

Each component is a “Resource”.

  1. Adding a backend

  2. Adding a frontend