Remove git based Heroku deploy files (#170)

This commit is contained in:
Simon Prévost 2020-05-01 08:48:06 -04:00 committed by GitHub
parent f3c2bbed26
commit 1097114eac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 62 deletions

View File

@ -1 +0,0 @@
https://s3.amazonaws.com/shared.ws.mirego.com/libyaml-dev_0.1.4-3ubuntu3-2.1_amd64.deb

View File

@ -1,2 +0,0 @@
web: mix phx.server
release: mix ecto.migrate

View File

@ -60,7 +60,7 @@ This will start the webserver on port 4000, migrate the database to have an up a
- `erlang ~> 21.2`
- `elixir ~> 1.9`
- `postgres >= 9.4`
- `node.js >= 8.5.0`
- `node.js >= 10.16.0`
- `libyaml >= 0.1.7`
## 🎛 Executing mix commands
@ -193,6 +193,30 @@ An Heroku-compatible `app.json` makes it easy to deploy the application on Herok
<img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy on Heroku" />
</a>
### Using Heroku CLI
_Based on [this guide](https://devcenter.heroku.com/articles/container-registry-and-runtime#getting-started)_
```
$> heroku create
Creating app... done, ⬢ peaceful-badlands-85887
https://peaceful-badlands-85887.herokuapp.com/ | https://git.heroku.com/peaceful-badlands-85887.git
$> heroku addons:create heroku-postgresql:hobby-dev --app peaceful-badlands-85887
Creating heroku-postgresql:hobby-dev on ⬢ peaceful-badlands-85887... free
Database has been created and is available
$> heroku config:set FORCE_SSL=true DUMMY_LOGIN_ENABLED=true WEBAPP_URL=https://peaceful-badlands-85887.herokuapp.com --app peaceful-badlands-85887
Setting FORCE_SSL, DUMMY_LOGIN_ENABLED, WEBAPP_URL and restarting ⬢ peaceful-badlands-85887... done
$> heroku container:push web --app peaceful-badlands-85887
=== Building web
Your image has been successfully pushed. You can now release it with the 'container:release' command.
$> heroku container:release web --app peaceful-badlands-85887
Releasing images web to peaceful-badlands-85887... done
```
## 🌎 Contribute
Before opening a pull request, please open an issue first.

View File

@ -7,13 +7,11 @@
"i18n",
"translations"
],
"stack": "container",
"website": "https://www.accent.reviews",
"repository": "https://github.com/mirego/accent",
"logo": "https://raw.githubusercontent.com/mirego/accent/master/priv/static/images/accent.png",
"success_url": "/",
"scripts": {
"postdeploy": "mix do ecto.migrate, run ./priv/repo/seeds.exs"
},
"env": {
"WEBAPP_URL": {
"description": "The URL of the app. Used in sent emails and to redirect from external services to the app in the authentication flow.",
@ -29,11 +27,6 @@
"description": "The default login to quickly test the instance. It only requires the user to enter a valid email to login.",
"value": "true",
"required": false
},
"MIX_ENV": {
"description": "The environment in which Elixir code will run",
"value": "prod",
"required": true
}
},
"addons": [
@ -43,16 +36,5 @@
"version": "9.6"
}
}
],
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-apt#usr-local-paths"
},
{
"url": "https://github.com/HashNuke/heroku-buildpack-elixir"
},
{
"url": "https://github.com/gjaldon/heroku-buildpack-phoenix-static"
}
]
]
}

View File

@ -1,4 +0,0 @@
cd $phoenix_dir
npm --prefix ./webapp run build-production-inline
npm --prefix ./jipt ci --no-audit --no-color
npm --prefix ./jipt run build-production-inline

View File

@ -1,11 +0,0 @@
# Erlang version
erlang_version=21.2
# Elixir version
elixir_version=1.9.1
# Always rebuild from scratch on every deploy?
always_rebuild=false
# Export heroku config vars
config_vars_to_export=(PORT DATABASE_URL SECRET_KEY_BASE CANONICAL_HOST)

3
heroku.yml Normal file
View File

@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile

View File

@ -1,23 +0,0 @@
# Clean out cache contents from previous deploys
clean_cache=false
# We can change the filename for the compile script with this option
compile="compile"
# We can set the version of Node to use for the app here
node_version=10.16.0
# We can set the version of NPM to use for the app here
npm_version=6.9.0
# We can set the path to phoenix app. E.g. apps/phoenix_app when in umbrella.
phoenix_relative_path=.
# Remove node and node_modules directory to keep slug size down if it is not needed.
remove_node=false
# We can change path that npm dependencies are in relation to phoenix app. E.g. assets for phoenix 1.3 support.
assets_path=webapp
# We can change phoenix mix namespace tasks. E.g. phx for phoenix 1.4 support.
phoenix_ex=phx