This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get upgrade && apt-get autoremove | |
apt-get install git nodejs nginx ufw python3 python3-pip curl | |
pip3 install jinja2-cli | |
ufw allow 22 && ufw logging off && ufw enable && ufw status | |
npm install yarn | |
apt-get install rng-tools # Apparently: https://stackoverflow.com/questions/37501596/random-nonblocking-pool-initialization-taking-a-long-time-on-ubuntu-16-04-ser | |
# USER | |
echo "Enter your app name (note: this will double as your default username)" | |
read APP_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream {{APP_NAME}} { | |
server unix:/home/{{APP_NAME}}/app/shared/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name example.com; | |
root /home/{{APP_NAME}}/app/current/public; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 16:07:21 | |
data: { | |
story: { | |
name: 'sales', | |
created_at: '2019-08-02T07:22:25.416Z', | |
published_at: '2019-08-14T08:32:10.635Z', | |
alternates: [], | |
id: 1800973, | |
uuid: '22cf19a8-1f48-4c24-bd22-28a2e8d44243', | |
content: [Object], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table referendum | |
( | |
id INTEGER not null | |
constraint referendum_pk | |
primary key autoincrement, | |
name text | |
); | |
create table questions | |
( |
OlderNewer