소스 검색

Add welcome html page

Johannes Zellner 9 년 전
부모
커밋
7197e35f78
4개의 변경된 파일21개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      Dockerfile
  2. 0 1
      apache2-app.conf
  3. 15 0
      index.html
  4. 5 0
      start.sh

+ 1 - 0
Dockerfile

@@ -21,6 +21,7 @@ RUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \
         -e 's,;session.save_path.*,session.save_path = "/run/app/sessions",' \
         -i /etc/php5/apache2/php.ini
 
+ADD index.html /app/code/index.html
 ADD start.sh /app/code/start.sh
 
 CMD [ "/app/code/start.sh" ]

+ 0 - 1
apache2-app.conf

@@ -24,4 +24,3 @@
         </IfModule>
     </Directory>
 </VirtualHost>
-

+ 15 - 0
index.html

@@ -0,0 +1,15 @@
+<html>
+<head>
+	<title> Welcome </title>
+</head>
+
+<body>
+
+<h4>This works!</h4>
+
+<p>
+Use the <a href="https://cloudron.io/references/cli.html">cloudron</a> commandline tool to put files in this app or get a remote terminal.
+</p>
+
+</body>
+</html>

+ 5 - 0
start.sh

@@ -3,6 +3,11 @@
 set -eu
 
 mkdir -p /app/data
+
+if [ ! -f "/app/data/index.html" ]; then
+	cp /app/code/index.html /app/data/index.html
+fi
+
 chown -R www-data:www-data /app/data /run/app
 
 echo "Starting apache"