Skip to content

Commit

Permalink
add heroku deploy with data from ohmyform#83
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Jun 3, 2020
1 parent c38b4dc commit b253917
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 29 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ LABEL maintainer="OhMyForm <[email protected]>"
WORKDIR /usr/src/app

COPY api/ .
COPY --from=builder /usr/src/app/out /usr/src/app/public

RUN yarn install --frozen-lockfile
RUN yarn build
Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: node server.js
web: node api/dist/main
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# OhMyForm 0.9.1
![OhMyForm](public/logo.png)

# OhMyForm 0.9.1

<!-- TODO: Code Shelter maybe. -->
<!-- [![Code Shelter](https://www.codeshelter.co/static/badges/badge-flat.svg)](https://www.codeshelter.co/) -->
Expand All @@ -17,7 +18,7 @@ Moving over to Discord so that I can manage things without hassle.
[![Discord](https://img.shields.io/discord/595773457862492190.svg?label=Discord%20Chat)](https://discord.gg/nWbrjtz)
> An *open source alternative to TypeForm* that can create stunning mobile-ready forms, surveys and questionnaires.
<!-- [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ohmyform/ohmyform/tree/production)-->
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/ohmyform/ohmyform/tree/master)

## Table of Contents

Expand Down Expand Up @@ -84,21 +85,21 @@ Follow documentation hosted on [OhMyForm.com](http://ohmyform.com/docs/install/)
### Code Contributors

This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/ohmyform/ohmyform/graphs/contributors"><img src="https://opencollective.com/ohmyform-sustainability/contributors.svg?width=890&button=false" alt="Contributors" /></a>
[![Contributors](https://opencollective.com/ohmyform-sustainability/contributors.svg?width=890&button=false)](https://github.com/ohmyform/ohmyform/graphs/contributors)

### Financial Contributors

Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/ohmyform-sustainability/contribute)]

#### Individuals

<a href="https://opencollective.com/ohmyform-sustainability"><img src="https://opencollective.com/static/images/opencollective-og-default.png?width=890" alt="Individuals"></a>
[![Individuals](https://opencollective.com/static/images/opencollective-og-default.png?width=890)](https://opencollective.com/ohmyform-sustainability)

#### Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/ohmyform-sustainability/contribute)]

<a href="https://opencollective.com/ohmyform-sustainability/organization/0/website"><img src="https://opencollective.com/ohmyform-sustainability/organization/0/avatar.svg"></a>
<a href="https://opencollective.com/ohmyform-sustainability/organization/1/website"><img src="https://opencollective.com/ohmyform-sustainability/organization/1/avatar.svg"></a>
<a href="https://opencollective.com/ohmyform-sustainability/organization/2/website"><img src="https://opencollective.com/ohmyform-sustainability/organization/2/avatar.svg"></a>
[![](https://opencollective.com/ohmyform-sustainability/organization/0/avatar.svg)](https://opencollective.com/ohmyform-sustainability/organization/0/website)
[![](https://opencollective.com/ohmyform-sustainability/organization/1/avatar.svg)](https://opencollective.com/ohmyform-sustainability/organization/1/website)
[![](https://opencollective.com/ohmyform-sustainability/organization/2/avatar.svg)](https://opencollective.com/ohmyform-sustainability/organization/2/website)

29 changes: 8 additions & 21 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,20 @@
"name": "ohmyform",
"description": "Opensource alternative to TypeForm",
"repository": "https://github.com/ohmyform/ohmyform",
"logo": "https://raw.githubusercontent.com/ohmyform/ohmyform/master/public/modules/core/img/brand/logo.png",
"logo": "https://raw.githubusercontent.com/ohmyform/ohmyform/master/public/logo.png",
"keywords": ["form", "survey"],
"env": {
"BASE_URL": {
"description": "Domain name where the site will be hosted",
"value": "ohmyform.herokuapp.com"
},
"MAILER_SERVICE_PROVIDER": {
"description": "Set this to any services from https://nodemailer.com/smtp/well-known/ to use a 'well-known' email provider",
"value": ""
},
"MAILER_SMTP_HOST": {
"description": "Set this if you are not using a 'MAILER_SERVICE_PROVIDER'",
"value": ""
},
"MAILER_SMTP_PORT": {
"description": "Set this if you are not using a 'MAILER_SERVICE_PROVIDER'",
"value": ""
},
"MAILER_EMAIL_ID": {
"description": "Username credential of your SMTP service",
"value": ""
},
"MAILER_PASSWORD": {
"description": "Password credential of your SMTP service",
"MAILER_URI": {
"description": "Set this to a uri like smtp://localhost:1025 - for more information check https://nodemailer.com/",
"value": ""
},
"MAILER_FROM": {
"description": "Email address from which signup/verifications are sent",
"value": ""
"value": "OhMyForm <no-reply@localhost>"
},
"CREATE_ADMIN": {
"description": "Use this to automatically create an admin user on startup",
Expand Down Expand Up @@ -67,5 +51,8 @@
{
"url": "heroku/nodejs"
}
]
],
"scripts": {
"postdeploy": "scripts/heroku/postdeploy.sh"
}
}
File renamed without changes
24 changes: 24 additions & 0 deletions scripts/heroku/postdeploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

cd ui/

echo "Install UI"
yarn install --frozen-lockfile

echo "Build and Export UI"
yarn export

cd ../api

echo "Install API"
yarn install --frozen-lockfile

echo "Copy Exported UI to API"
cp -r ui/out public

yarn install

echo "Build API"
yarn build


echo "FINISHED build for UI and API"

0 comments on commit b253917

Please sign in to comment.