Skip to content

Instantly share code, notes, and snippets.

@llbbl
Created May 2, 2022 15:02
Show Gist options
  • Save llbbl/c320eae69b51af5d837835a36fa017e7 to your computer and use it in GitHub Desktop.
Save llbbl/c320eae69b51af5d837835a36fa017e7 to your computer and use it in GitHub Desktop.
install ghost, so easy, they said
#!/bin/zsh
if [ ! -d "{{ghost_install_dir}}" ]
then
echo "creating {{ghost_install_dir}}"
mkdir {{ghost_install_dir}}
fi
cd {{ghost_install_dir}}
ghost install -d "{{ghost_install_dir}}" \
--no-prompt \
--url "{{ghost_site_url}}" \
--admin-url "{{ghost_site_admin_url}}" \
--ip 127.0.0.1 --port 2368 \
--db "{{ghost_db_driver}}" \
--dbhost "{{ghost_db_hostname}}" \
--dbuser "{{ghost_db_user}}" \
--dbport {{ghost_db_port}} \
--dbpass "{{ghost_db_password}}" \
--dbname "{{ghost_db_name}}" \
--sslstaging "{{ghost_sslstaging}}" \
--process "{{ghost_process_manager}}" \
--mail "{{ghost_mail_driver}}" \
--mailservice {{ghost_mail_service_name}} \
--mailuser "{{ghost_mail_user}}" \
--mailpass "{{ghost_mail_password}}" \
--mailhost "{{ghost_mail_hostname}}" \
--mailport {{ghost_mail_port}} \
--no-setup-linux-user \
--no-setup-nginx \
--no-setup-ssl \
--no-setup-systemd \
--no-setup-mysql \
--no-start \
--no-setup-ssl
@llbbl
Copy link
Author

llbbl commented May 2, 2022

Tested with Ghost v4.46.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment