createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
我正在尝试在ubuntu服务器18.04上安装dspace 6.3,但是在运行命令createuser -U postgres -d -A -P dspace
后安装了postgresql之后,请获取上述错误帮助
答案 0 :(得分:0)
您是否启动了服务器?尝试FROM ruby:2.6.3-slim
ARG RAILS_MASTER_KEY
bla bla install yarn etc
RUN gem install bundler
#Install gems
RUN mkdir /gems
WORKDIR /gems
COPY Gemfile .
COPY Gemfile.lock .
RUN bundle install
ARG INSTALL_PATH=/opt/my_app
ENV INSTALL_PATH $INSTALL_PATH
ENV RAILS_MASTER_KEY $RAILS_MASTER_KEY
WORKDIR $INSTALL_PATH
COPY . .
RUN RAILS_ENV=production rake assets:precompile
或sudo service postgresql restart