diff options
author | thekettu <samantha.chalker@nccgroup.trust> | 2018-04-08 16:08:10 -0700 |
---|---|---|
committer | thekettu <samantha.chalker@nccgroup.trust> | 2018-04-08 16:08:10 -0700 |
commit | 376dbb16b9bad4efce6bfd305a13761eb83a00ce (patch) | |
tree | 342b36f30b9f1dde0b15f5f53fdc9c82ff17e820 /deploy/setup-mastodon.sh | |
parent | ea7476b3f789f2422dbf2260f3b8aa7ae9248b43 (diff) |
small project
Diffstat (limited to 'deploy/setup-mastodon.sh')
-rwxr-xr-x | deploy/setup-mastodon.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/deploy/setup-mastodon.sh b/deploy/setup-mastodon.sh index ff06c05..e394184 100755 --- a/deploy/setup-mastodon.sh +++ b/deploy/setup-mastodon.sh @@ -23,15 +23,19 @@ sed -i "s|# UID=1000|UID=$MUID|" $YML_LOC/.docker/mastodon/.env.production sed -i "s|# GID=1000|GID=$MGID|" $YML_LOC/.docker/mastodon/.env.production docker-compose run --rm mstweb rake db:migrate -(openssl dhparam -rand /dev/urandom -out $YML_LOC/.docker/nginx/dhparam.pem 4096 2>&1 >/dev/null) & pid=$! echo -echo "Mostly set up. Modify .docker/mastodon/.env.production settings and then" -echo "you can do a 'docker-compose up -d' on this instance. OpenSSL is still" -echo "running, so wait a bit for it to finish too." +echo "Mostly set up. Modify .docker/mastodon/.env.production settings, run" +echo "'docker-compose run --rm mstweb rake mastodon:webpush:generate_vapid_key'" +echo "and then replace those values in .env.production as well. When you're" +echo "finished, just run 'docker-compose up -d'." echo -echo "There is an Nginx configuration file in conf/nginx.conf you can use." +echo "There is an Nginx configuration file in conf/nginx.conf you can use. Just" +echo "copy it to /etc/nginx/conf.d/ directory as root then start Nginx." echo echo "Also, when you're going to the instance, register and then run this command:" echo "docker-compose run --rm mstweb rake mastodon:make_admin USERNAME=yourusername" echo +echo "Finally, to update, just run 'docker-compose pull' and it will pull the" +echo "newest image from Docker Hub, and then 'docker-compose up -d' to restart." +echo |