package com.mekenim.callboard.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class MvcConfig implements WebMvcConfigurer {
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/login").setViewName("login");
}
}
/etc/apt/sources.listназвание репозитория я в ручную пропишу
Сергей Шленский, почему запускаете через
docker-compose run web python app/manage.py runserver 0.0.0.0:8000
?
docker-compose up web
и docker-compose up
, не получилось((((Starting backendtopstudentsru_web_1 ... done
Attaching to backendtopstudentsru_web_1
web_1 | Watching for file changes with StatReloader
web_1 | Performing system checks...
web_1 |
web_1 | System check identified no issues (0 silenced).
web_1 | October 19, 2019 - 17:10:59